wordpress/wp-content/themes/basic/themify/themify-config.php
/**
 * After a Builder layout is loaded, adjust some page settings for better page display.
 *
 * @since 2.8.9
 */
After a Builder layout is loaded, adjust some page settings for better page display.
After a Builder layout is loaded adjust some page settings for better page display .
function themify_adjust_page_settings_for_layouts( $args ) {
	if( 'custom' === $args['layout_group'] )
		return;
	$post_id = $args['current_builder_id'];
	$post = get_post( $post_id );
	update_post_meta( $post_id, 'content_width', 'full_width' );
	if( $post->post_type === 'page' ) {
		update_post_meta( $post_id, 'page_layout', 'sidebar-none' );
		update_post_meta( $post_id, 'hide_page_title', 'yes' );
	} else {
		update_post_meta( $post_id, 'layout', 'sidebar-none' );
		update_post_meta( $post_id, 'hide_post_title', 'yes' );
	}
}
function themify_adjust_page_settings_for_layouts ( $ args ) { if ( 'custom' === $ args [ 'layout_group' ] ) return ; $ post_id = $ args [ 'current_builder_id' ] ; $ post = get_post ( $ post_id ) ; update_post_meta ( $ post_id , 'content_width' , 'full_width' ) ; if ( $ post -> post_type === 'page' ) { update_post_meta ( $ post_id , 'page_layout' , 'sidebar-none' ) ; update_post_meta ( $ post_id , 'hide_page_title' , 'yes' ) ; } else { update_post_meta ( $ post_id , 'layout' , 'sidebar-none' ) ; update_post_meta ( $ post_id , 'hide_post_title' , 'yes' ) ; } }
After a Builder layout is loaded, adjust some page settings for better page display.
After a Builder layout is loaded adjust some page settings for better page display .