MyBB Community Forums

Full Version: Hiding the theme source codes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i hide the mybb's theme source code?
I want to hide the source code of theme that a browser can show like that:
<!-- start: header -->
<!-- stop: header -->
How can i find them? Maybe i can hide source code.
If you want to disable the comments, go to Admin CP -> Board Settings (Change) -> Server and Optimization Settings -> Turn off "Output template start/end comments"
Be aware that removing those comments can create template issues. Browsers often add space when comments are used. I found out the hard way that removing those comments placed all the postbit_ buttons butt up against each other. That imho should be fixed.