Remove HTML-Comments

Posted in: Newspaper
Post count: 3

Hello tagDiv-Team

First of all: Your theme is amazing, it’s the first time I use it and I have an awesome impression. I’m currently creating a fanpage and I just love working with your theme and tagDiv-Composer! Thx a lot for your work and keep it up!

I only dislike one thing: the HTML-Comments that the theme renders. Can you recommend a method (i.e. function in functions.php or wp-config.php) to remove those?

Screenshot

Thx for your help!

Greetings

Post count: 20688

Hi,

Thank you very much for your appreciation of the theme. There are more new features to come in future updates.

Removing the HTML comments within the actual theme file would not be a permanent solution, after an update it will have to be done again.
Try a plugin maybe, such as this one
https://wordpress.org/plugins/vg-remove-html-comments/

Thanks

Post count: 3

Thx for the quick response!
I don’t want to install a plugin for this though, I’d rather do it manually. It’s clear to me that after an update I’ll have to do it again and that’s ok for me.
Could you please tell me in which file(s) to find the code? I’ve searched a long time now and haven’t found it…

Post count: 35449

HI yunique,

You can try the plugin and remove them and after that deactivate the plugin and delete it from plugins folder.
Hope this will help you.

Thank you for your understanding.

Post count: 9544

Note, if your web hosting provider supports mod_pagespeed, this is an option included in that server side system. We use it here to remove comments and line breaks and empty spaces, dynamically.

Post count: 3

Thx a lot to everybody for your advice!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.