-
AuthorPosts
-
August 3, 2015 at 11:25 am #348666
Wardo_SDParticipantHello,
I am having trouble verifying my site in Google Webmaster tools and was wondering what exactly is the best approach to go about doing that?
I have tried uploading an HTML file with no success. I also tried adding the code mentioned here into the functions php file and using the webmaster tools verification code, but this ended up crashing the site.
The code I used was:
<?php
add_action(‘wp_head’, ‘add_googleanalytics’);
function add_googleanalytics() { ?>
<script>Insert Your Google Analytics Code Here</script>
<?php } ?>The other options require placing a code in the head file, but as I cannot alter the head file, I am unsure of where to place this code.
Is there a better way to go about accomplishing this?
Thanks for your time!
August 3, 2015 at 11:45 am #348682
Prasant RaiModeratorHello There,
Thanks for writing in!
Kindly walk-through following thread:
If you are not comfortable with code changes you can use Verify Google Webmaster Tools plugin, plugin details are:
1) Plugin name: Verify Google Webmaster Tools
2) URL: https://wordpress.org/plugins/verify-google-webmaster-tools/Let us know how it goes.
Thanks.
August 3, 2015 at 11:55 am #348689
Wardo_SDParticipantThe plugin worked perfectly!
Thanks again for your time!
August 3, 2015 at 1:06 pm #348755
ZeshanMemberYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-348666 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
