Site logo

Archived topic

Adding HTML tag to site

1 reply · Started by Carsten on January 10, 2022

Viewing posts 1–2 of 2

Hi there, I'm trying to add this FaceBook verification code to my site.
<meta name="facebook-domain-verification" content="7ehze92fqt22iqesh93sv4i118qpo8" />

I could paste the meta-tag into the <head> ... <head> section of the website’s home page HTML source, which must be the header.php
But I guess this will be overwritten by the next update. Can I copy the header.phpfile to my child theme.

Another option is to insert the code into a wp_head hook element, but the domain dos not get verified. I have tried with and without <head> ... <head>.

What is best practice for adding HTML to the site?

Regards
Carsten

Hi Carsten,

You can use a Hook element for this.

You can add that html tag on a Hook element's code area and set the hook to wp_head and set the display rule to entire site. :D

This archived topic is closed to new replies.