Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Apply Full Width Content layout to Posts page, Single Posts and Archives.
- add_action( 'get_header', 'sk_set_full_layout' );
- function sk_set_full_layout() {
- if ( ! ( is_home() || is_singular( 'post' ) || is_archive() ) ) {
- return;
- }
- // Force full width content
- add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement