Thread: Very First Page

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Very First Page

    Brain freeze.

    what is the very first page to load when somebody goes to zencart?

    Thanks

    andyb
    Learning Fast.
    Eden Craft Supplies

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Very First Page

    Quote Originally Posted by adb34 View Post
    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?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Very First Page

    Quote Originally Posted by mc12345678 View Post
    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
    Learning Fast.
    Eden Craft Supplies

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Very First Page

    Quote Originally Posted by adb34 View Post
    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?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Very First Page

    Quote Originally Posted by mc12345678 View Post
    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
    Learning Fast.
    Eden Craft Supplies

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Very First Page

    Quote Originally Posted by adb34 View Post
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Very First Page

    Can the meta tag go anywhere?
    Learning Fast.
    Eden Craft Supplies

  8. #8
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Very First Page

    Quote Originally Posted by adb34 View Post
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Very First Page

    There are no head tags in includes/modules/pages/index/header_php.php
    Learning Fast.
    Eden Craft Supplies

  10. #10
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Very First Page

    Quote Originally Posted by adb34 View Post
    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
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. First Page very slow to load
    By Jims in forum General Questions
    Replies: 7
    Last Post: 22 Mar 2011, 01:11 PM
  2. First Question New (very) User
    By CoolHandFluke in forum General Questions
    Replies: 9
    Last Post: 30 Jan 2011, 06:49 PM
  3. Very basic, first timer question
    By kittycat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jun 2007, 04:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg