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

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: