Totally Zenned
- Join Date:
- Mar 2008
- Location:
- Brampton, Cumbria, United Kingdom, United Kingdom
- Posts:
- 825
- Plugin Contributions:
- 0
Very First Page
Brain freeze.
what is the very first page to load when somebody goes to zencart?
Thanks
andyb
Views: 2,532
Totally Zenned
Brain freeze.
what is the very first page to load when somebody goes to zencart?
Thanks
andyb
Totally Zenned
adb34:
Brain freeze.
what is the very first page to load when somebody goes to zencart?
Thanks
andyb
Typical install loads the main_page which has text that can be found in admin panel under tools define pages I think it is. There is an override though in the configuration settings that can have the first page be something else. I don't recall which area it is located, possibly my store or layout settings I'm thinking.
What seems to be the issue in more detail?
Totally Zenned
mc12345678:
What seems to be the issue in more detail?
There is no issue. I was looking for the right place to put "<meta name="google-site-verification" content="*********" />
andyb
Totally Zenned
adb34:
There is no issue. I was looking for the right place to put "<meta name="google-site-verification" content="*********" />
andyb
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
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?
I will have a look at using tpl_header.php and see what happens. Thanks for the info
Totally Zenned
adb34:
I will have a look at using tpl_header.php and see what happens. Thanks for the info
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.
Totally Zenned
Can the meta tag go anywhere?
Totally Zenned
adb34:
Can the meta tag go anywhere?
While following applicable html layout, anywhere between <head> and </head>, to be displayed on the page that appears when the uri provided to google is loaded.
Totally Zenned
There are no head tags in includes/modules/pages/index/header_php.php
Totally Zenned
adb34:
There are no head tags in includes/modules/pages/index/header_php.php
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
Totally Zenned
I have found 'Simple Google Analytics', can I build it in to that?
Totally Zenned
Just looking through the plugin's and I have also found 'EZ-Pages Meta Tag Fields'. Would this work? I am just trying to make my life a bit simple
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
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
<meta name="robots" content="noindex, nofollow" /> ```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:
I have put the code in the place mentioned. I am getting 'I am unable to verify your site:'
Totally Zenned
adb34:
I have put the code in the place mentioned. I am getting 'I am unable to verify your site:'
Then you need to check back with Google WHY..
in the meantime post a link to your site here so we can SEE what you SEE..
Totally Zenned
Ughhh, thanks Diva, I really went off to a whole nother tree when I went out on that limb. :) some things are easier than others for me being away from the code.
Totally Zenned
adb34:
I have put the code in the place mentioned. I am getting 'I am unable to verify your site:'
My fault. Finger trouble. Sorted now. Thanks for the help from everybody.
Totally Zenned
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
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"?
add a clock? need a better explanation..
Totally Zenned
If the clock code needs to be in the area between <head> and </head>, then that code portion could be loaded there. If you're just looking to put a clock up and thinking that html_header is the place because it has html and is at the top of the page, no.
Fields marked required must be completed.
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.