Skip to content

Instantly share code, notes, and snippets.

@spivurno
Created June 30, 2016 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spivurno/216a4da869e7d30f2cbcae9493373188 to your computer and use it in GitHub Desktop.
Save spivurno/216a4da869e7d30f2cbcae9493373188 to your computer and use it in GitHub Desktop.
Gravity Perks // GP Live Preview // Full Width Preview for Elegant Themes' Divi Theme
<?php
/*
* Gravity Perks // GP Live Preview // Full Width Preview for Elegant Themes' Divi Theme
* http://gravitywiz.com
*/
if( function_exists( 'gp_live_preview' ) ) {
update_post_meta( gp_live_preview()->get_preview_post( 'ID' ), '_et_pb_page_layout', 'et_full_width_page' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment