Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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
As far as I know these comments only show in Dev mode. Eg. when you run your site on localhost.
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">
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 :)
How can I make them go away even in dev mode? They are breaking my site so I can't even test it!
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.
in your _config.php file should turn these comments off.