Archived topic
Verifying Website With Google
3 replies · Started by Lee on November 25, 2020
Hello there, I've been given a verification code from Google Search Console that I need to upload to my wordpress website.
Could you please tell me where I might need to upload this code within Wordpress/Generate Press?
Many thanks again,
Hi there,
you can use a Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
Add the code to the Hooks content field.
Select the wp_head hook
And set the Display Rule Location to Entire Site
Thanks David.
Although, when I do this the verification code appears on the top of the page when I view the website? I don't want the verification code to appear on the front end of the website. I want it embedded (so that I can verify with Google) but hidden.
I hope that makes sense,
Lee.
One of them Methods Google provides for verification is the HTML Tag, it looks like this:
<meta name="google-site-verification" content="your verification string">
That is all you need to hook into the wp_head hook