• Skip to main content

Julian Thomas Screawn

B.A. ,B.ED. ,M.ED.

  • Home
  • About
  • Projects
  • Resources
  • Reference
  • Contact

How to set a custom page layout for a specific page in Genesis

2021/03/03

Add the code below to your functions.php file in your child theme directory.

function full_width_layout_single_posts( $opt ) {
//specific page by Post ID
if (is_page(97)) {
    $opt = 'full-width-content'; 
    return $opt;
    } 

return $opt;
}
add_filter( 'genesis_pre_get_option_site_layout', 'full_width_layout_single_posts' );

Optional Layouts

  • content-sidebar
  • sidebar-content
  • content-sidebar-sidebar
  • sidebar-sidebar-content
  • sidebar-content-sidebar
  • full-width-content

Filed Under: Genesis Framework

Copyright © 2021 · Servicing Moncton, Dieppe, Riverview and beyond!