Created
October 2, 2017 12:00
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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