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' );
}