Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Dec 2006
    Location
    Tokyo, Melbourne, Shanghai
    Posts
    102
    Plugin Contributions
    0

    Default customising main page while not effecting other pages

    Yesterday I removed the sideboxes from just the main page but could leave them on all other pages. This was a major breakthru for me!!
    It is easily done by assigning a flag for either: left, right, header, footer.

    but

    Now I want to remove only a small portion of the header itself like: the Navigation Breadcrumb, and Categories Bar.

    I used "<!-- blah blah --> to make the Bar not appear but now i cannot see it on any pages!!
    Is there another level to which i can use the override system for just the header of the Main Page but leave all other headers unchanged??

    I also want to remove the centerBoxContent and heading on the main page but want it on all other pages. can this also be done?

    Any help most appreciated.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: customising main page while not effecting other pages

    If you are using a recent version of Zen Cart you can wrap the code you don't want to be executed on the home page with the following
    if (!$this_is_home_page ) {
    <code to be not executed>
    }
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: customising main page while not effecting other pages

    Now I want to remove only a small portion of the header itself like: the Navigation Breadcrumb
    If you're using version 1.3.7 you can control the breadcrumb in admin -> configuration -> layout settings: you can turn them off completely turn them on for all pages or turn them off on just the main page.

  4. #4
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: customising main page while not effecting other pages

    I know how n00b this sounds but which files would be the files to work on if I had to do any hand coding for the main page?

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: customising main page while not effecting other pages

    That would depend. The structure of the main page is controlled by common/tpl_main_page.php, but it pulls in content from the entire template system. Could you provide more information about what you'd like to do.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: customising main page while not effecting other pages

    Basically I would have several images and one log in box.

    What I am doing will make this main page look like a brochure cover.

 

 

Similar Threads

  1. Display slideshow at main page and hide in other pages like new_products
    By ritesh.shrestha in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Sep 2011, 05:50 PM
  2. Replies: 1
    Last Post: 17 Oct 2009, 11:50 PM
  3. Restrict main page picture from showing in pages other than home page
    By dealbyethan.com in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Apr 2007, 05:33 PM

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