Facebook verification code

I’m trying to add a meta-tag for Facebook. It states it needs to be in the homepage HTML source in the head section. I’ve looked at other threads which suggest a plugin ‘insert headers and footers’ but this is for javascript. This is html code.

Where do I put it?

Hi Lorenmn,

Thanks for reaching out.
The said plugin is for inserting the JavaScript code, you may need to use a plugin that allows you to add meta. I would suggest you go through the following articles and plugins from the WordPress repository.



Hope it helps.
Thanks

Surely there’s a way to add this code without needing a plugin?

Hi Lorenmn,

Yes, you can add it by using the wp_head hook in the functions.php of your child theme. The code will look like the following one.

function custome_meta_tags() 
{
    echo '<meta name="meta_name" content="meta_value" />';
}
add_action('wp_head', 'custome_meta_tags');

Please remember that the above code will work if copied as it is and don’t conflict with any existing code.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.

I would also request you to go through the following article which may help you on this.



Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.