Skip to content

Instantly share code, notes, and snippets.

@webdev1001
Forked from blogjunkie/template-page-builder.php
Last active August 29, 2015 14:15
Show Gist options
  • Save webdev1001/916d789b9f5ca39ed3dc to your computer and use it in GitHub Desktop.
Save webdev1001/916d789b9f5ca39ed3dc to your computer and use it in GitHub Desktop.
<?php
/**
* Template Name: Page Builder
*
* This page template only works with Genesis child themes and works great with the
* Beaver Builder plugin. Learn more: http://clickwp.com/blog/beaver-builder/
*/
// 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 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
*/
get_header();
do_action( 'genesis_before_content_sidebar_wrap' );
do_action( 'genesis_loop' );
do_action( 'genesis_after_content_sidebar_wrap' );
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment