Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    43
    Plugin Contributions
    0

    Default sidebar not appearing in categories page

    Hi everyone,

    I've set up the side bar not to appear in the home page using the following code in tpl_main_page.php:

    if (in_array($current_page_base,explode(",",'index')) ) {
    $flag_disable_right = true;
    }

    this works fine apart from when I click on a category, for some reason the sidebar is not appearing there either. Its appearing in all the other pages.

    Any ideas?

    Thanks in advance

  2. #2
    Join Date
    May 2009
    Posts
    43
    Plugin Contributions
    0

    Default Re: sidebar not appearing in categories page

    OK, so I changed
    if (in_array($current_page_base,explode(",",'index')) ) {
    $flag_disable_right = true;
    }

    for

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

    and now it works

 

 

Similar Threads

  1. Custom Sidebar for different product categories
    By samleeiii in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Mar 2010, 10:47 PM
  2. Categories Sidebar - Text Indentation?
    By stiggy100 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Feb 2009, 09:23 PM
  3. How to Add Categories to sidebar?
    By vitaman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jan 2008, 04:45 PM
  4. my main page index.html appearing above the categories!!! please help
    By ztotheetothen in forum Basic Configuration
    Replies: 4
    Last Post: 22 Jan 2008, 09:51 PM

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
  •