Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A custom page template for #GenesisWP to play nice with page builders by making the content area full width. Works great with the Beaver Builder
* Template Name: Page Builder
* This page template only works with Genesis child themes and works great with the
* Beaver Builder plugin. Learn more:
// Force full width content layout to remove sidebar
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
// Make sure certain elements aren't shown
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_after_entry', 'genesis_get_comments_template' );
//* Remove structural wraps
remove_theme_support( 'genesis-structural-wraps' );
//* Re-enable structural wraps on the following (except site-inner)
add_theme_support( 'genesis-structural-wraps', array(
) );
// Remove footer widgets (uncomment following line to remove footer widgets)
// remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
* Replace genesis() function with our own
* Modified from framework.php
do_action( 'genesis_before_content_sidebar_wrap' );
do_action( 'genesis_loop' );
do_action( 'genesis_after_content_sidebar_wrap' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.