Jump to content
Sign in to follow this  
sanjib

Removing footer widgets from certain pages

Recommended Posts

sanjib

Hi Guys The widgets on the footer look awesome, but there are some pages where I don't want them to appear. Is there anyway I can determine which pages the footer widgets do show in, and which pages I can leave them out? Many thanks Sanjib

Share this post


Link to post
Share on other sites
Andrew

yes, you could add a custom field for it. change this line in footer.php: `if(($bbpress_forum && pagelinesforum('hide_bottom_sidebars')) || !pagelines('bottom_sidebars')) $hide_footer = true;` to this: `if(($bbpress_forum && pagelinesforum('hide_bottom_sidebars')) || !pagelines('bottom_sidebars') || get_post_meta($post->ID, 'nofootersidebars', true)) $hide_footer = true;` then add a custom field called 'nofootersidebars' and set it to '1' or 'true'

Share this post


Link to post
Share on other sites
sanjib

Hiya, Many thanks for your reply. I now want to remove the footer widgets totally from my site, is there a simple way I can add a custom code to the main page to do this? Cheers Sanjib

Share this post


Link to post
Share on other sites
sanjib

Hi sorry I just found the answer myself, when digging deep into the options panel! Thanks all the same, Sanjib

Share this post


Link to post
Share on other sites
patrick

Hi Andrew, I'm having a similar issue: wanting to have the 3 footer sidebars appear only on the home page and not on the posts or any other pages. I was going to try and modify the footer.php like you suggested above, but I think there are some differences between the code for WHPro (above) and iBlogPro. This is what I was going to try to modify in the footer.php: if($bbpress_forum && pagelinesforum('exclude_pages')){ $forum_exclude = ','.pagelinesforum('exclude_pages');} else{ $forum_exclude = '';} wp_list_pages('sort_column=menu_order&exclude='.$frontpage_id.$forum_exclude.'&depth=1&title_li=');?> So this code references 'exclude_pages' while your earlier example references 'hide_bottom_sidebars'. Can you steer me in the right direction to modify the code to get the footer widgets off the other pages? Cheers, Patrick

Share this post


Link to post
Share on other sites
cmunns

There is an option for this when you create each post/page It reads like this: "Hide widgetized columns on top of footer Hides the three widgetized areas that lie above the footer on this page/post."

Share this post


Link to post
Share on other sites
patrick

Hi Adam, I appreciate your response. Unfortunately, I don't have that checkbox option on my Page Options. I only have the following: iBlogPro3 Page Options -Show Flow Sidebar -Show D&D Sidebar -Show Accordion Sidebar -Show Content Sidebar -Hide Ads -Allow Comments On This Page This is why I thought I maybe needed to create a custom field like Andrew suggested above. Any additional feedback would be appreciated. I don't mind how the footer widgets look on the home page, but they stretch to an abnormal width on the individual blog pages. http://investba.com Thanks again, Patrick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×