Site logo

Archived topic

How to remove comment tag not necessary like <!-- #commen

7 replies · Started by Mr Calvert on January 7, 2021

Viewing posts 1–8 of 8

Hello I have see a lot of comment tag not necessary. Can you help me remove that with function?
<!-- #comment-## -->
<!-- .children -->
<!-- .comment-list -->
<!-- #respond -->
<!-- #comments -->
It in html you can see this image: https://ibb.co/LYSkSGC

Hi,

Any particular reason why you want them removed?

If it's for site site/performance, you won't get any significant performance gains by removing these.

But if you must still remove them, you'll have to search for these html comment tags manually within the theme files.

Note: These tags will be added back if you update, unless Tom decides to remove them from the future versions of the theme files.

Yes! don't have any function to deleted that? I think it not neccessary! Do you know it in location? I can't find that in source code

Yes! don’t have any function to deleted that? I think it not neccessary! Do you know it in location? I can’t find that in source code

These are scattered all throughout the theme files.

We don't keep track or add any filter to remove them as they're not really worth giving much effort in removing as they don't affect the performance.

You can try scanning through all the theme files one by one to look for them but to point to to the files with the most html comment tags, its most likely the files within generatepress\inc\structure folder.

Yes thanks you so much ^^! All best with you!!! Please update for me or note in update when have any way to remove that with function or upload Generate Press to remove. Thanks you so much Elvin!!!

Yes thanks you so much ^^! All best with you!!! Please update for me or note in update when have any way to remove that with function or upload Generate Press to remove. Thanks you so much Elvin!!!

It's very unlikely that there will be filters specifically for them but we will make sure to indicate it on the changelog if Tom decides to remove them.

No problem. :D

Yes thanks you so much ^^! All best with you and team!
Can you help me this problem? I was ask one topic but have no reply. I very need that in this time:
How to remove <span class=”screen-reader-text”>Menu</span> That is not neccesary
I was try add this code of Tom:
add_filter(‘generate_mobile_menu_label’,’generate_remove_menu_label’);
function generate_remove_menu_label()
{
return ”;
}
But it not useful. Can you give me function to remove that?
This is image class I need remove: https://ibb.co/9T1bC1M

This archived topic is closed to new replies.