Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    127
    Plugin Contributions
    0

    Default Removing side columns from main page ONLY

    I am interested in removing the side columns (left & right) from my shop's main page ONLY. I want the columns to remain untouched on all other pages. How do I do this? I figure it has to be a pretty simple solution.

    FWIW I did do a search and found this thread:
    http://www.zen-cart.com/showthread.p...umns+main+page

    But it goes in circles a bit and confused me more than it helped.

    ...so any replies would be greatly appreciated. :-) Thank you!

    *edit* If it helps, my main page is currently handled through the 'define pages' editor like default. I don't know if that makes a difference or not.

  2. #2
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Removing side columns from main page ONLY


  3. #3
    Join Date
    Apr 2012
    Posts
    127
    Plugin Contributions
    0

    Default Re: Removing side columns from main page ONLY

    Alright then, in looking at that post & article, would this work?


    if ($this_is_home_page) {
    $flag_disable_left = true;
    $flag_disable_right = true;
    }

  4. #4
    Join Date
    Jan 2006
    Posts
    1,542
    Plugin Contributions
    0

    Default Re: Removing side columns from main page ONLY

    Here's the code (below) I use on one of my demo sites here:

    http://www.webdivision.prommart.com/...h_id=barebones

    and I have it at the very top of common/tpl_main_page right after the instructions.

    But whether or not it will work will depend in part on your template. Some templates like Estorenow, Bluecart, Apple Zen and Cherry Zen, one doesn't just turn on or off columns, it's a bit more involved than that.

    if ($this_is_home_page == true) {
    $flag_disable_right = true;
    $flag_disable_left = true;
    }
    Steve
    prommart.com

 

 

Similar Threads

  1. Need both side columns on home page only
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Mar 2012, 09:21 PM
  2. Sideboxes gone from right side on main page only
    By icklebits in forum Basic Configuration
    Replies: 17
    Last Post: 26 Nov 2009, 03:30 PM
  3. Removing categories side box from index page only
    By rack14650 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Apr 2009, 03:58 AM
  4. Dropdowns, attribute images, & removing columns from index page
    By avara222 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jul 2008, 04:35 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