[Support request] How to remove comment tag not necessary like <!– #commen

Home Forums Support [Support request] How to remove comment tag not necessary like <!– #commen

Home Forums Support How to remove comment tag not necessary like <!– #commen

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1608970
    Mr Calvert

    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

    #1608974
    Elvin
    Staff
    Customer Support

    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.

    A wise man once said:
    "Have you cleared your cache?"

    #1608977
    Mr Calvert

    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

    #1609009
    Elvin
    Staff
    Customer Support

    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.

    A wise man once said:
    "Have you cleared your cache?"

    #1609014
    Mr Calvert

    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!!!

    #1609052
    Elvin
    Staff
    Customer Support

    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. 😀

    A wise man once said:
    "Have you cleared your cache?"

    #1609055
    Mr Calvert

    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

    #1609167
    Elvin
    Staff
    Customer Support

    I believe you’ve already have a post about this particular topic found here?
    https://generatepress.com/forums/topic/how-to-remove-menu-that-is-not-neccesary/#post-1609126

    Please see David’s reply.

    Also, if you have no further questions related to the topic opened, can we mark this topic as resolved?
    https://docs.generatepress.com/article/resolving-topics/

    So we could continue with the other topics you’ve raised. Thank you. 🙂

    A wise man once said:
    "Have you cleared your cache?"

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.