Site logo

Archived topic

Different Layout

1 reply · Started by Alejandra Arango on November 23, 2015

Viewing posts 1–2 of 2

I want to create a new layout (different logo, menu position, ...) using GeneratePress theme and apply it to a single page in my site (that has already a GeneratePress theme installed). Is it possible?

You can do this using a function like this:

add_filter( 'generate_option_defaults','generate_change_values' );
function generate_change_values( $generate_defaults )
{
	// If we're on the blog, change the navigation position setting
	if ( is_home() ) {
		$generate_defaults['nav_position_setting'] = 'nav-above-header';
	}
	
	// Return the rest of the values
	return $generate_defaults;
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

You can use WordPress conditions to target pages etc..: https://codex.wordpress.org/Conditional_Tags

To get the setting name and values, use Inspect Element in the Customizer.

This archived topic is closed to new replies.