Print HTML comments in the header
-
Hi.
I need to print an html comment on my home page, and only. I’ve come with this snippet. But it doesn’t work has the output is “<!– site verification XXXXX –>”
How can I print an html comment using php ?
Thanks
//Verification tag add_action('wp_head', 'verification_tag); function verification_tag(){ if(is_front_page()) { $data = "site verification XXXXX"; echo htmlentities('<!-- ' . $data . ' -->',ENT_QUOTES); } };
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Print HTML comments in the header’ is closed to new replies.