Page 1 of 1

Code not valid

Posted: Fri Oct 14, 2005 8:01 am
by Grover
Hi,

I am to stupit to get a valid code. I chek HTML code of cms.eids.de and can not solve it.
Maybe someone can have a look?

Edit: if I remove {stylesheet} out of the template the code is valid.

Thanks

Grover

Re: Code not valid

Posted: Fri Oct 14, 2005 12:18 pm
by Ted
The stylesheet tag that's created has the /> at the end of it.  I guess this isn't valid for html 4.01, though I've never heard anyone complain about that before.

Re: Code not valid

Posted: Sat Oct 29, 2005 4:30 pm
by BlueTag
Does anyone know how to remove the "/"? Thanks

Re: Code not valid

Posted: Sat Oct 29, 2005 10:49 pm
by Ted
If this is 0.10.3, go to line 129 of lib/content.functions.php.

Find

Code: Select all

$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$config['root_url'].'/stylesheet.php?templateid='.$template_id.'" />';
and replace with

Code: Select all

$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$config['root_url'].'/stylesheet.php?templateid='.$template_id.'">';