Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    104
    Plugin Contributions
    0

    Default Remove sideboxes from certain pages?

    Is it possible to remove (or comment-out) some sideboxes from just the main page, but keep them on other pages?

  2. #2
    Join Date
    Aug 2006
    Location
    Singapore
    Posts
    167
    Plugin Contributions
    1

    Default Re: Remove sideboxes from certain pages?

    Yes it is possible through editing file tpl_main_page.php from
    /your-template-folder/common/

    Find among the above lines the following:

    * // example to not display right column on main page when Always Show Categories is OFF<br />
    * <br />
    * if ($current_page_base == 'index' and $cPath == '') {<br />
    * $flag_disable_right = true;<br />
    * }<br />
    * <br />
    * example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br />
    * <br />
    * if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br />
    * $flag_disable_right = true;<br />
    * }<br />

    you can comment out column that you want to turn off

    example to turn off column right on index page when Always Show Categories is off

    PHP Code:
    if ($current_page_base == 'index' and $cPath == ''
    $flag_disable_right true

  3. #3
    Join Date
    Aug 2006
    Posts
    104
    Plugin Contributions
    0

    Default Re: Remove sideboxes from certain pages?

    Thank you for your reply..

    You stated "you can comment out column that you want to turn off".

    However, I'd like to turn off a sidebox not a column.

    Is this done in the same place?

    Thanks.

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Remove sideboxes from certain pages?

    However, I'd like to turn off a sidebox not a column.
    http://www.zen-cart.com/forum/showth...debox+override

    Url above may help

 

 

Similar Threads

  1. v139h Script to remove SSL from certain pages
    By cactusrunning in forum General Questions
    Replies: 9
    Last Post: 21 Mar 2013, 06:00 AM
  2. Remove categories list from certain pages
    By lainybroon in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Nov 2010, 08:09 PM
  3. Remove sideboxes from zen cart pages
    By dsaini in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 27 Aug 2009, 02:15 PM
  4. Remove titles from certain EZ pages
    By bigbadboy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 May 2008, 03:00 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