admin管理员组

文章数量:1389968

This question already exists: How to hide all html comments like <!-- --> from my website Asteroid Theme [closed] Closed 5 years ago.

How to hide unwanted HTML Comment from website.

This question already exists: How to hide all html comments like <!-- --> from my website Asteroid Theme [closed] Closed 5 years ago.

How to hide unwanted HTML Comment from website.

Share Improve this question asked Feb 14, 2020 at 18:13 MontoshMontosh 1 5
  • Comments are hidden by default. Please explain your problem better. – fuxia Commented Feb 14, 2020 at 18:16
  • Thank you fuxia, – Montosh Commented Feb 14, 2020 at 18:25
  • Madam, I want to hide unwanted HTML comments like <!-- xxxx--> from my website. I also send you a image. please help me. – Montosh Commented Feb 14, 2020 at 18:29
  • Only thing that could help you is basically write your own theme from scratch. So, the real question is, why do you want them not being in the code? What will it bring you? – Pavel Janicek Commented Feb 14, 2020 at 18:43
  • The easiest way would be to make an huge Search in files for <!-- and manually delete them all. But as others told you, what is the point since they are not displayed on the webpage? – Patrice Poliquin Commented Feb 14, 2020 at 20:27
Add a comment  | 

1 Answer 1

Reset to default 0

Even when Wordpress is actually hiding comments in your source code by instant, it could be possible that plugins or yourself put other comments into your code. However that happened, you can delete them manually from your Theme / Child-Theme or minify the HTML-Code. A Plugin like Autoptimize will help your minify the HTML-Code and deleting all comments.

本文标签: How to hide unwanted HTML Comment like lt xxxxgt in website