StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-20-2012, 09:08 AM
jp2112's Avatar
jp2112 jp2112 is offline
Registered User
Genesis Member
 
Join Date: Sep 2011
Location: NYC
Posts: 492
Default

It depends on how you set up the static / front page option (under Settings >> Reading in WP admin menu), but something like this in your functions.php should force the layout to full width on all pages except "Home":

PHP Code:
// remove sidebar from all pages except "Home"
add_filter('genesis_pre_get_option_site_layout''streamline_home_layout');
function 
streamline_home_layout($layout) {
  if (
is_page()) {
    if (!
is_front_page()) { // might be is_home(), I always forget
      
$layout 'full-width-content';
    } 
  }
  return 
$layout;

__________________
When asking for help, kindly:
1) Read the FAQ.
2) Post your URL.
3) Use [php][/php] tags when posting programming code,
or [html][/html] when posting website source code.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to hide all sidebars from just single.php? pkazmercyk General Discussion 3 02-23-2011 08:54 AM
How to hide pages? tkoc General Discussion 4 11-13-2008 07:10 AM


All times are GMT -5. The time now is 07:44 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.