I want to show only {!–googleoff: index–}, {!–googleon: index–} HTML comment
-
How can I hide all HTML comments but not
<!--googleoff: index--> & <!--googleon: index-->
because this comment is for the Google.*There must be a space or newline before the googleon tag.
I don’t want other comments since they are for development and useless for the website visitor. Also increases the document size.
Also, I’m not sure Google bots still care about these tags but I just add them. It is good if Autoptimize doesn’t remove it by default (or) provide an option to exclude these tags. Thank you.
Reference:
https://en.wikipedia.org/wiki/Noindex#Structured_comments
https://support.google.com/gsa/answer/6329153?hl=en#57a1e30a-63b2-4470-86a5-94a6c06912be
- The topic ‘I want to show only {!–googleoff: index–}, {!–googleon: index–} HTML comment’ is closed to new replies.