Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Location
    New York
    Posts
    121
    Plugin Contributions
    2

    Default Categories sidebox help

    Hi all how i can turn off my categories side box only for main page or home page? help please thank You

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Categories sidebox help

    Add a test to your sidebox file.
    Copy /includes/modules/sideboxes/categories.php to /includes/modules/sideboxes/your_template/categories.php, and find this
    PHP Code:
    * @version $Idcategories.php 2718 2005-12-28 06:42:39Z drbyte $
     */

        
    $main_category_tree = new category_tree
    Add a new line above $main_category_tree:
    PHP Code:
        if (!$this_is_home_page) { 
    and at the bottom of the file add a new line

    }

    to get
    PHP Code:
        require($template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
        }
    ?> 

  3. #3
    Join Date
    Jul 2009
    Location
    New York
    Posts
    121
    Plugin Contributions
    2

    Default Re: Categories sidebox help

    Quote Originally Posted by gjh42 View Post
    Add a test to your sidebox file.
    Copy /includes/modules/sideboxes/categories.php to /includes/modules/sideboxes/your_template/categories.php, and find this
    PHP Code:
    * @version $Idcategories.php 2718 2005-12-28 06:42:39Z drbyte $
     */

        
    $main_category_tree = new category_tree
    Add a new line above $main_category_tree:
    PHP Code:
        if (!$this_is_home_page) { 
    and at the bottom of the file add a new line

    }

    to get
    PHP Code:
        require($template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
        }
    ?> 
    Thanks for your help

 

 

Similar Threads

  1. Hide categories and tree categories sidebox
    By adowty in forum Addon Sideboxes
    Replies: 1
    Last Post: 16 Aug 2011, 03:09 PM
  2. Categories Sidebox limiting to 40 categories
    By firstimpression in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2011, 02:59 AM
  3. Enable Links for Parent Categories in Categories Sidebox
    By MrsQ in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Sep 2009, 08:25 PM
  4. How to display sub-categories in categories sidebox?
    By icaros in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Oct 2007, 12:22 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
  •