- This topic has 7 replies, 2 voices, and was last updated 3 years, 3 months ago by Elvin.
-
AuthorPosts
-
January 7, 2021 at 12:19 am #1608970Mr 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/LYSkSGCJanuary 7, 2021 at 12:29 am #1608974ElvinStaffCustomer SupportHi,
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.
January 7, 2021 at 12:32 am #1608977Mr CalvertYes! 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
January 7, 2021 at 1:12 am #1609009ElvinStaffCustomer SupportYes! 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.January 7, 2021 at 1:14 am #1609014Mr CalvertYes 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!!!
January 7, 2021 at 2:13 am #1609052ElvinStaffCustomer SupportYes 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. 😀
January 7, 2021 at 2:14 am #1609055Mr CalvertYes 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/9T1bC1MJanuary 7, 2021 at 3:46 am #1609167ElvinStaffCustomer SupportI 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-1609126Please 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. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.