Results 1 to 6 of 6
  1. #1
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default Can you remove side boxes just from home page?

    Is it possible to remove all the side boxes from just the main page of my cart (zen 1.3.7)? I would like to keep the look and feel of my header and footer, however I want to make have my own HTML on the main page.

    Once I get into the cart though I would like to re-introduce some of the side boxes.

    Thanks is advance.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Can you remove side boxes just from home page?

    Easy.

    In /includes/templates/your_template/common/tpl_main_page.php, add this:
    PHP Code:

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

    just before this
    PHP Code:
      $header_template 'tpl_header.php';
      
    $footer_template 'tpl_footer.php';
      
    $left_column_file 'column_left.php';
      
    $right_column_file 'column_right.php'
    And you can put all of your home page HTML in define_main_page.php, in admin > Tools > Define Page Editor.
    Last edited by gjh42; 20 May 2007 at 04:17 PM.

  3. #3
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default Re: Can you remove side boxes just from home page?

    Great... It worked just how I wanted. Thanks so much. This is a great community.

  4. #4
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    89
    Plugin Contributions
    0

    Default Re: Can you remove side boxes just from home page?

    Hi, I like to do the same thing on Login page. What would I use instead of "$this_is_home_page"? I tried "$this_is_login_page" and didn't work.

    Thanks you!

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Can you remove side boxes just from home page?

    The home page is the only one that has a "this_is" variable.

    For other pages, you can use
    PHP Code:
    if ($current_page_base == 'whatever_page') {
      
    //your code


  6. #6
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    89
    Plugin Contributions
    0

    Default Re: Can you remove side boxes just from home page?

    Quote Originally Posted by gjh42 View Post
    The home page is the only one that has a "this_is" variable.

    For other pages, you can use
    PHP Code:
    if ($current_page_base == 'whatever_page') {
      
    //your code

    Thank you! that worked perfectly!

 

 

Similar Threads

  1. Remove heading from side boxes
    By els321 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Nov 2011, 09:14 PM
  2. Remove side bars from home page only
    By ScottDB in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Aug 2011, 07:50 AM
  3. Remove pages from side boxes
    By Ivanna in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jul 2011, 09:32 PM
  4. Turning off side boxes on just one define page
    By buildingblocks in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jan 2009, 02:07 AM
  5. Remove Side Boxes From Tell A Friend Page
    By webgaffer in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Oct 2007, 08:48 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR