Created
November 29, 2014 13:25
-
-
Save Dynamik-Beaver/429f6c78c4048e0039db to your computer and use it in GitHub Desktop.
A Dynamik Page Template for Beaver Builder full width rows when using the Default Skin. Go to Genesis > Dynamik Custom > Templates: File Name: bb-full-width
Template Name: Beaver Builder Full Width
Select "Page Template" from the dropdown and then paste code in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add beaver-page body class | |
add_filter( 'body_class', 'beaver_body_class' ); | |
function beaver_body_class( $classes ) { | |
$classes[] = 'beaver-page'; | |
return $classes; | |
} | |
//* Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
//* Remove entry header | |
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 Dynamik content filler | |
remove_action( 'genesis_loop', 'dynamik_content_filler' ); | |
//* Remove edit link | |
add_filter( 'genesis_edit_post_link' , '__return_false' ); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment