Totally Zenned
- Join Date:
- Mar 2008
- Posts:
- 825
- Plugin Contributions:
- 0
Very First Page
what is the very first page to load when somebody goes to zencart?
Thanks
andyb
Totally Zenned
Totally Zenned
adb34:
Brain freeze.
what is the very first page to load when somebody goes to zencart?
Thanks
andyb
Totally Zenned
mc12345678:
What seems to be the issue in more detail?
Totally Zenned
adb34:
There is no issue. I was looking for the right place to put "<meta name="google-site-verification" content="*********" />
andyb
Totally Zenned
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?
Totally Zenned
adb34:
I will have a look at using tpl_header.php and see what happens. Thanks for the info
Totally Zenned
Totally Zenned
adb34:
Can the meta tag go anywhere?
Totally Zenned
Totally Zenned
adb34:
There are no head tags in includes/modules/pages/index/header_php.php
Totally Zenned
Totally Zenned
Totally Zenned
adb34:
There is no issue. I was looking for the right place to put "<meta name="google-site-verification" content="*********" />
andyb
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?
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.
adb34:
There are no head tags in includes/modules/pages/index/header_php.php
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
<meta name="robots" content="noindex, nofollow" />Totally Zenned
DivaVocals:
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:
<meta name="robots" content="noindex, nofollow" />
Totally Zenned
adb34:
I have put the code in the place mentioned. I am getting 'I am unable to verify your site:'
Totally Zenned
Totally Zenned
adb34:
I have put the code in the place mentioned. I am getting 'I am unable to verify your site:'
Totally Zenned
Totally Zenned
adb34:
So if I wanted to add a, for example, a clock, would I put the code into ""/includes/templates/YOUR_TEMPLATE/common/html_header.php"?
Totally Zenned
Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.