Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* Beaver Builder */
.beaver-page.fl-builder .content,
.beaver-page.fl-builder .content .page,
.beaver-page.fl-builder .content-sidebar-wrap,
.beaver-page.fl-builder .site-container,
.beaver-page.fl-builder .site-inner {
background: none;
border: 0;
float: none;
margin: 0 auto;
padding: 0;
-webkit-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.beaver-page.fl-builder .content,
.beaver-page.fl-builder .content .page,
.beaver-page.fl-builder .content-sidebar-wrap,
.beaver-page.fl-builder .site-inner {
max-width: 100%;
width: 100%;
}
.fl-builder .entry-content,
.fl-builder .entry-content p,
.fl-builder .entry-content ul li,
.fl-builder .entry-content ol li,
.fl-builder .entry-content h1,
.fl-builder .entry-content h2,
.fl-builder .entry-content h3,
.fl-builder .entry-content h4,
.fl-builder .entry-content h5,
.fl-builder .entry-content h6 {
color: inherit;
}
.fl-builder .entry-content a {
color: inherit;
text-decoration: none;
border-bottom: 1px dotted;
}
<?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 Feature Top
remove_action( 'wp_head', 'ez_feature_top_structure' );
//* 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' );
//* Remove comments template
remove_action( 'genesis_after_entry', 'genesis_get_comments_template' );
//* Remove Fat Footer
remove_action( 'wp_head', 'ez_fat_footer_structure' );
//* Run the Genesis loop
genesis();
<?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 feature top
remove_action( 'wp_head', 'ez_feature_top_structure' );
//* Remove navigation
remove_action( 'genesis_before_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_before_header', 'genesis_do_subnav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
remove_action( 'genesis_before_header', 'dynamik_mobile_nav_1' );
remove_action( 'genesis_after_header', 'dynamik_mobile_nav_1' );
remove_action( 'genesis_before_header', 'dynamik_mobile_nav_2' );
remove_action( 'genesis_after_header', 'dynamik_mobile_nav_2' );
remove_action( 'genesis_before_header', 'dynamik_dropdown_nav_1' );
remove_action( 'genesis_after_header', 'dynamik_dropdown_nav_1' );
remove_action( 'genesis_before_header', 'dynamik_dropdown_nav_2' );
remove_action( 'genesis_after_header', 'dynamik_dropdown_nav_2' );
//* Remove site header elements
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
//* 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' );
//* Remove comments template
remove_action( 'genesis_after_entry', 'genesis_get_comments_template' );
//* Remove fat footer
remove_action( 'wp_head', 'ez_fat_footer_structure' );
//* Remove site footer elements
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
//* Run the Genesis loop
genesis();
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.