Originally Posted by
adb34
There is no issue. I was looking for the right place to put "<meta name="google-site-verification" content="*********" />
andyb
Originally Posted by
mc12345678
Oh, that's a different story. Doesn't that need to be visible on all pages and in the header of the site? Like in includes/templates/YOUR_TEMPLATE/common/tpl_header.php I think is the filename?
Originally Posted by
mc12345678
Took a gander at the requirements for google's verification by use of a meta tag, they do only look for the tag in the "root" of the site, so if the first page is the default first page (and not say a category) then the code should be able to be dded to: includes/modules/pages/index/header_php.php and would only show up on the first page. Wwhile minor in quantity of information, this would minimize the amount of content loaded to the browser as it would not be loaded to every page, just the index/main paage.
Further I was wrong in my first post, main_page is not the first page, that is the tag that is used to identify what page (which follows) is/should be loaded.
Originally Posted by
adb34
There are no head tags in includes/modules/pages/index/header_php.php
Originally Posted by
mc12345678
Correct. The header_php.php content is loaded between them. Have to look at the code from a bigger perspective, a file is loaded (I think it is the template file I described before) that kicks off the top of the header, but then branches out to collect other information and then to display it. Header_php.php (and other files ending with .php in that directory) are loaded before the body content is loaded. You may have to escape the code a little to display html or echo the content, so for example may need to add: ?><Meta info /><?php
That's because "includes/modules/pages/index/header_php.php" is the WRONG file to modify.. You put the Google meta tag inside the "/includes/templates/YOUR_TEMPLATE/common/html_header.php" file (where YOUR_TEMPLATE = the name of your template's folder)
You can put the code right after line 41:
Code:
<meta name="robots" content="noindex, nofollow" />
Bookmarks