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 |1 Answer
Reset to default 0Even 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.
<!--
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