Page 1 of 1
is it possible to change the way stylesheets are included? [SOLVED]
Posted: Sat Nov 08, 2008 10:36 am
by davids355
I am using cmsmadesimple 1.4.1
My site has been set up to use HTML 4.01 Transitional, however, the stylesheets are included using xhtml (I think) and this gives errors when I validate it using w3c validator.
Is there any way to change how stylesheets are included? All I want to do is remove the "/" from the end of the tag.
Re: is it possible to change the way stylesheets are included?
Posted: Sat Nov 08, 2008 11:38 am
by Dee
Edit plugins/function.stylesheet.php - on line 52 change
to
Regards,
D
Re: is it possible to change the way stylesheets are included?
Posted: Sat Nov 08, 2008 12:18 pm
by davids355
thats great thanks!
Also, below the stylesheet includes I have this code:
Any ideas where I can edit this?
Re: is it possible to change the way stylesheets are included?
Posted: Sat Nov 08, 2008 12:38 pm
by Dee
modules/News/News.module.php line 213:
Code: Select all
$text = '<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="'.$url.'" />'
By the way plugins/function.stylesheet.php contains 2 more XHTML tags on lines 86 and 87:
Code: Select all
$fmt1 = '<link rel="stylesheet" type="text/css" media="%s" href="%s" />';
$fmt2 = '<link rel="stylesheet" type="text/css" href="%s" />';
Regards,
D
Re: is it possible to change the way stylesheets are included?
Posted: Sat Nov 08, 2008 1:41 pm
by davids355
Many thanks.
Re: is it possible to change the way stylesheets are included? [SOLVED]
Posted: Sat Nov 08, 2008 6:41 pm
by newseed
You may find that the img closing tag still persist. The code will still validate but it will give a warning.