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.
is it possible to change the way stylesheets are included? [SOLVED]
is it possible to change the way stylesheets are included? [SOLVED]
Last edited by davids355 on Sat Nov 08, 2008 1:42 pm, edited 1 time in total.
Re: is it possible to change the way stylesheets are included?
Edit plugins/function.stylesheet.php - on line 52 change
to
Regards,
D
Code: Select all
$str .= 'href="'.$url.'" />';
Code: Select all
$str .= 'href="'.$url.'">';
D
Re: is it possible to change the way stylesheets are included?
thats great thanks!
Also, below the stylesheet includes I have this code:
Any ideas where I can edit this?
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?
modules/News/News.module.php line 213:
By the way plugins/function.stylesheet.php contains 2 more XHTML tags on lines 86 and 87:
Regards,
D
Code: Select all
$text = '<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="'.$url.'" />'
Code: Select all
$fmt1 = '<link rel="stylesheet" type="text/css" media="%s" href="%s" />';
$fmt2 = '<link rel="stylesheet" type="text/css" href="%s" />';
D
Re: is it possible to change the way stylesheets are included? [SOLVED]
You may find that the img closing tag still persist. The code will still validate but it will give a warning.