This post for beginners answers this forum question with one solution:
I would like a full-width homepage in Lifestyle Pro without any sidebars. I want to remove the regular sidebar.
Go to Line 20 of the Lifestyle Pro themes front-page.php file and change the line of code from this:
// Force content-sidebar layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
To This:
// Force full width layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
Here’s the before and after shots showing the difference after changing the code for the layout setting.
Content Sidebar Layout – Before
Full Width Layout – After
Notes
- You can pretty much apply this solution to any StudioPress child theme.
- This solution only works for themes using a front-page.php, home.php, index.php or other template file for the main page of the site.
Full Width Page Layout Settings
But wait! What if i’ve created a static page to use as the front page of my site using the reading settings?
Simply edit the static page and change the Layout Setting to full width which you’ll find underneath the editor:
Custom Full Width Home Page Widgets
This code creates a custom front-page.php which you can upload to your child themes root directory. The page includes 6 full width widget areas you can populate and style with anything you like including a full width video.
And here’s the result
Was This Tutorial Helpful?