Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Created March 6, 2019 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rafaehlers/9c6391bb746056481d885026682014d0 to your computer and use it in GitHub Desktop.
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
<?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