Created
March 6, 2019 23:29
-
-
Save rafaehlers/9c6391bb746056481d885026682014d0 to your computer and use it in GitHub Desktop.
Prevent a DIVI powered theme from disabling GravityView's widgets when the View is embedded in a page
This file contains hidden or 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 //Remove this line | |
add_filter( 'et_grab_image_setting', function( $default ) { | |
if ( gravityview()->request->is_view() ) return false; | |
return $default; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment