Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jamesmthornton/1e0b72ab37c369b4e8a90440b35a7854 to your computer and use it in GitHub Desktop.
Save jamesmthornton/1e0b72ab37c369b4e8a90440b35a7854 to your computer and use it in GitHub Desktop.
if divi builder is active on a page or post then force full width genesis layout on page
<?php
// if divi builder is active on a page or post then force full width genesis layout on page
add_filter( 'genesis_site_layout', 'if_divi_active_do_full_width_page' );
function if_divi_active_do_full_width_page() {
if(
// divi builder is being used on that page
) {
return 'full-width-content';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment