Free advertising for your Joomla business
× The best place to ask questions about problems that you might be having with Joomla is the forum at JoomlaOz. We may be able to help you if you post your question here.

Question GWT Verification File

  • Laurie
  • Laurie's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 10 months ago #136 by Laurie
GWT Verification File was created by Laurie
G'day!

My usual method of inserting the GWT verification code is to upload the file to the site's root.

I'm obliged to investigate the method of inserting the code in the head. Is this possible in Joomla?

I would think there may be an extension to do it but have never heard of it nor found it.

I understand that if the code is placed in the template index.php file, it will be lost upon updating the template or changing template.

Can it be done with a template override? Some other method?

Thanks,
Laurie.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago - 3 years 9 months ago #137 by sozzled
Replied by sozzled on topic GWT Verification File
The various methods of verifying to Google Webmaster Tools that your website actually belongs to you are outlined at https://support.google.com/webmasters/answer/35179 . One of those methods - the "usual" one - is to upload a file with a filename of the form googlexxxxxxxxxxxxxxxx.html (where x is a hexadecimal digit). You are right in saying that there are other mechanisms, such as inserting a tag in the HTML header section of your site's pages, like this:
<HTML>
<HEAD>
<TITLE>Your Title</TITLE>
<meta name="google-site-verification" content="String_we_ask_for">
</HEAD>
<BODY>

If you change the template index.php file, it's probable that the changes will be lost if you update the template. On the other hand, it's also possible to preserve your customised changes with a template override. I'm curious to understand why you feel "obliged" to insert the GWT verification within the head; I don't think I've ever used this method. My recollection involves solely uploading one file to the root and things seem to work OK for me ... I think that's all I've ever needed to do.

If you can't get an answer from someone else here, you might try asking the question at the Joomla forum site . I hope that helps. Maybe someone (like Rene) has a better idea?

Read my blog and
File Attachment:
Last edit: 3 years 9 months ago by sozzled.

Please Log in or Create an account to join the conversation.

  • Laurie
  • Laurie's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 9 months ago #138 by Laurie
Replied by Laurie on topic GWT Verification File
G'day Michael! Thanks for the response.

I'm obliged to investigate the method of inserting the code in the head.


A Super User has the ability to access and edit the template files. Let's just say that we have an Administrator who'd like Super User access so he can do everything. He has no access to FTP or File Manager in cPanel.

I'll look into the template override option. Also I've found an extension that will do it which seems a better option. That is, the extension will endure if the template is changed.

Thanks,
Laurie.

Please Log in or Create an account to join the conversation.

Time to create page: 0.243 seconds