Life, SAP, Consulting, Programming, Coding, ASP.NET, Sharepoint, MVC, Javascript, PHP, WebDesign, CSS, HTML

Posts tagged ‘Plugin Cufont cho Joomla không làm việc’

Joomla Cufon not working

When I install cufon plugin for joomla on my dev server which is using XAMP server, It was not loading. I found that the script path of cufon file not correct. It was

<script src=”http://localhost/plugins\system\kc_cufon\js\cufon-yui.js” type=”text/javascript”></script>

That is not an URL with \ separator.  To fix this, go to plugin file named kc_cufon.php in directory root/plugins/system. Find the line

$js = JURI::base() . “plugins” . DS . “system” . DS . “kc_cufon” . DS . “js” . DS . “cufon-yui.js”;

Edit it to

$js = JURI::base() . “plugins/system/kc_cufon/js/cufon-yui.js”;

That line will help you to fix cufon load.

Happy coding