Site logo

Archived topic

Secondary_nav_settings

3 replies · Started by Keith Messinger on March 6, 2019

Viewing posts 1–4 of 4

In the secondary_nav_settings where can I set the text to align right? Using GeneratePress Child.

Hi there,

I assume you don't want to use the Customizer option in Customize > Layout > Secondary Navigation?

If not, you could try this:

add_filter( 'option_generate_secondary_nav_settings', function( $options ) {
    $options['secondary_nav_alignment'] = 'right';

    return $options;
} );

Thanks Tom. For some reason I overlooked Customize > Layout > Secondary Navigation > Navigation Alignment. Like grandma used to say, "If'n it had been a snake, it would've bit me."

Haha, glad I could help :)

This archived topic is closed to new replies.