Jump to content
Sign in to follow this  
matt

Remove Sidebar from Highlight Template (StationPro)

Recommended Posts

matt    0
matt

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?

Share this post


Link to post
Share on other sites
jnoh    0
jnoh

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.

Share this post


Link to post
Share on other sites
matt    0
matt

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!

Share this post


Link to post
Share on other sites
jnoh    0
jnoh

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:

<?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.

Share this post


Link to post
Share on other sites
jnoh    0
jnoh

Oh very sorry (typo). Instead of:

require(LIB.'/template_fullwidth.php');
use:
require(PRO.'/template_fullwidth.php');

Share this post


Link to post
Share on other sites
matt    0
matt

Works Perfectly! Thank you so much, You saved the day!

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  

×