Home » Resources » Content Management Systems » Joomla! » Joomla! Hack – Fix Category Trailing Slash CSS Error in SH404SEF

Joomla! Hack – Fix Category Trailing Slash CSS Error in SH404SEF

No Comments Joomla! Print Print
This is more of a: you should know this, rather than a Hack. I had a problem where any page that had its URL formatted by SH404SEF with a trainling slash “/” instead of HTML, lost its CSS properties. Turns out if you manually insert a template file such as in Dreamweaver and upload with that format it will think that the “/” represents a new base directory. Solve this by using Joomla’s own base directory command:
<link rel=”stylesheet” href=”/baseurl ?>/templates/templatename/css/template.css” type=”text/css” />
or by using .. to denote the base directory.
<link rel=”stylesheet” href=”/../templates/templatename/css/template.css” type=”text/css” />.
Either way should work.

About the author

geilt has written 35 articles for Esotech Inc.

Archives
May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  
Contact Us

888-646-9653

info@esotech.org

Latest Tweets