Forums / General Questions / Very First Page

Very First Page

Results 1 to 20 of 25
15 Aug 2014, 12:01
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
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
15 Aug 2014, 12:12
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Very First Page

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?
15 Aug 2014, 12:28
#3
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

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
15 Aug 2014, 12:34
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Very First Page

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?
15 Aug 2014, 12:41
#5
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

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
15 Aug 2014, 13:27
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Very First Page

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.
15 Aug 2014, 14:12
#7
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

Can the meta tag go anywhere?
15 Aug 2014, 14:21
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Very First Page

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.
15 Aug 2014, 14:40
#9
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

There are no head tags in includes/modules/pages/index/header_php.php
15 Aug 2014, 15:05
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Very First Page

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
15 Aug 2014, 15:37
#11
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

I have found 'Simple Google Analytics', can I build it in to that?
15 Aug 2014, 15:57
#12
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

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
15 Aug 2014, 16:13
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Very First Page

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" />
15 Aug 2014, 16:49
#14
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

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" />


I have put the code in the place mentioned. I am getting 'I am unable to verify your site:'
15 Aug 2014, 17:16
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Very First Page

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..
15 Aug 2014, 17:21
#16
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Very First Page

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.
15 Aug 2014, 18:45
#17
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

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.
19 Aug 2014, 13:44
#18
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Posts:
825
Plugin Contributions:
0

Re: Very First Page

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"?
19 Aug 2014, 13:48
#19
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Very First Page

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..
19 Aug 2014, 13:56
#20
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Very First Page

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.