Force a layout

The code snippets below should be pasted into your child theme's functions.php file.

Here is how you can force a specific layout. Find below the layouts acronyms:

  • c stands for full width content.
  • c_sp stands content with right primary sidebar.
  • sp_c stands content with left primary sidebar.
  • c_sp_ss content with right primary and secondary sidebars.
  • sp_ss_c content with left primary and secondary sidebars.
  • sp_c_ss content with left primary sidebar and right secondary sidebar.
// Force layout.
add_filter( 'beans_layout', 'example_force_layout' );

function example_force_layout() {

    return 'c';

}