23459 Posts in 18906 Topics by 2877 members
|Go to End|
9 May 2009 at 12:55am
How do I remove template comments from the generated HTLM?
<!-- template E:/wamp/www/ss/themes/simple/templates/Page.ss -->
<!-- end template E:/wamp/www/ss/themes/simple/templates/Page.ss -->
What should I put in Page.ss to prevent these comments from being displayed
9 May 2009 at 1:03am
As far as I know these comments only show in Dev mode. Eg. when you run your site on localhost.
2 June 2009 at 9:28pm
These codes are causing me grief even in Dev mode on localhost.
IE7 does NOT like comments before the document type definition. It causes the whole page to be rendered incorrectly!
How can I get rid of these comments?
<!-- template /home/mysite/html/ss/themes/atom/templates/mypage.ss -->
<!-- include /home/mysite/html/ss/themes/atom/templates/Includes/Header.ss -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 June 2009 at 9:49pm
Yea as banal said, these comments only occur when the site is in Dev mode - once you put the site into live mode then the comments disappear
2 June 2009 at 10:07pm
How can I make them go away even in dev mode? They are breaking my site so I can't even test it!
3 June 2009 at 12:15am
Maybe you should not put include statements before the <!DOCTYPE
Since you'll never want anything before that doctype tag, you shouldn't add an include there to begin with!
If I'm making false assumptions, and you're not including anything before the doctype tag, please share your template code with us...
I for one haven't encountered this problem yet.
3 June 2009 at 12:28am
in your _config.php file should turn these comments off.
|Go to Top|