Forums / Templates, Stylesheets, Page Layout / sidebar not appearing in categories page

sidebar not appearing in categories page

Locked

Started by wilbo on 13 May 2009, 1:20 PM · Views: 744

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 May 2009, 1:20 PM
#1
wilbo avatar

wilbo

New Zenner

Join Date:
May 2009
Posts:
43
Plugin Contributions:
0

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

13 May 2009, 3:38 PM
#2
wilbo avatar

wilbo

New Zenner

Join Date:
May 2009
Posts:
43
Plugin Contributions:
0

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