Add code to index.html file

Hi there,

I’m trying to get Pinterest set up and I have been asked to confirm my website by copying and pasting a tag (<meta name="blahblahblah"/>) into the <head> section of my website’s index.html file.

Do you know how I do this, bearing in mind that I am using a child theme?

Thank you,
EW

Hi @riugn557,

Thanks for writing in.

You can use this plugin below to accomplish your objective.

or you can follow the thread below.

Let us know how it goes.

Thanks.

Hi Nico,

Thanks for getting back to me.

I followed the advice of the thread that you attached for me and added the following to my child theme’s functions file underneath the additional functions area:

add_action('wp_head', function(){?>

<meta name="p:domain_verify" content="[my content here]"/>

<?php });

However, when I now go to Pinterest and try to confirm the website, I get the following message:

{“code”:“MethodNotAllowedError”,“message”:“POST is not allowed”}

Do you know what I have done wrong?

Thank you,
EW

Hi There,

Would you mind providing us with login credentials(by clicking on the Secure Note button at the bottom) so we can take a closer look? To do this, you can make a post with the following info:

  • Link to your site
  • WordPress Admin username / password

Thanks.

Hi Thai,

Here you go.

Thank you,
EW

Hi,

I checked your site source code and I can see the meta code added in the head section.

You can try Pinterest Upload an HTML file Method if that doesn’t work.

https://help.pinterest.com/en/articles/confirm-your-website

Thank you, Paul, I got it sorted

You’re welcome. Glad it was sorted out.

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