Archived

This topic is now archived and is closed to further replies.

  • 0

Remove Sidebar from Highlight Template (StationPro)

Question

Posted · Report post

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

7 answers to this question

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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.com/wp/?page_id=23 I'm not sure why?

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

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

Share this post


Link to post
Share on other sites