I'm trying to remove the right-side sidebar from the Highlight Template on StationPro. I tried "Hide Sidebars When Empty (no widgets)" Under Sidebar Options and there are no widgets in there, but it did not work... It did however clear my search and Facebook widgets in my footer...???
Any ideas?
Remove Sidebar from Highlight Template (StationPro)
Started by
matt
, Jan 19 2010 05:14 AM
7 replies to this topic
#1
Posted 19 January 2010 - 05:14 AM
#2
Posted 20 January 2010 - 12:13 AM
Here is the page I'm trying to remove the sidebar on:
http://www.kahnmedia.../wp/?page_id=23
#3
Posted 20 January 2010 - 07:37 AM
It looks like you're using the sidebar on other pages. Are there widgets in the "main_sidebar" container? If so, checking the box won't hide the sidebar.
To clarify. On the Highlight template, you're interested in having the content area stretch across the whole page?
note: the site looks great! great custom job on the theme.
#4
Posted 20 January 2010 - 06:14 PM
Thank you for the compliments!
There are no widgets in the "main_sidebar" container.
You are correct. I'm trying to get the content area to stretch across the whole page.
Thanks!
#5
Posted 20 January 2010 - 11:55 PM
Simply hiding the sidebar won't do that for you.
It'll just leave an empty space where the sidebar should be.
Let's hack a template together using the highlight page and the full width page.
Create a new theme file titled page-highlight-fullwidth.php and add this code to it:
Save this file and add it to your theme files.
Now in your Page Editor, you should see a "Highlight page - Full Width" option in the dropdown for template selection.
Let me know if anything was unclear.
Let's hack a template together using the highlight page and the full width page.
Create a new theme file titled page-highlight-fullwidth.php and add this code to it:
<?php
if(VPRO) {
/*
Template Name: Highlight Page - Full Width
*/
get_header();
require(LIB.'/_subhead.php');
require(PRO.'/template_highlight.php');
require(LIB.'/template_fullwidth.php');
get_footer();
}
?>
Save this file and add it to your theme files.
Now in your Page Editor, you should see a "Highlight page - Full Width" option in the dropdown for template selection.
Let me know if anything was unclear.
#6
Posted 21 January 2010 - 12:29 AM
I think we're getting close. I really appreciate your help. The new template did remove the sidebar, but also removed everything else on the page... http://www.kahnmedia.../wp/?page_id=23 I'm not sure why?
#7
Posted 21 January 2010 - 12:42 AM
Oh very sorry (typo). Instead of:
use:
require(LIB.'/template_fullwidth.php');
use:
require(PRO.'/template_fullwidth.php');
#8
Posted 21 January 2010 - 01:41 AM
Works Perfectly!
Thank you so much, You saved the day!









