• Resolved beckyhoefs

    (@beckyhoefs)


    Hi,
    I am looking to move the navigation menu so that it’s directly above the header image. My site is http://www.hillsidelifts.com. Could you please provide me with the css that I need?
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Evan Herman

    (@eherman24)

    Hi @beckyhoefs,

    Unfortunately, this can’t be achieved through CSS. You’re going to have to put together a custom MU plugin to run on your site with some custom code inserted into it.

    Take a look at the documentation we have put together on how to create an MU plugin here: https://github.com/godaddy/wp-primer-theme/wiki/Customizing-Primer-with-hooks#how-to-create-a-must-use-plugin

    Once you have your MU plugin setup you can insert the following code to shift the navigation above the header image.

    /**
     * Shift the navigation above the header image
     *
     * @author GoDaddy
     * @link   https://wordpress.org/support/topic/move-nav-bar-above-header-image/
     */
    add_action( 'init', function() {
    
    	remove_action( 'primer_after_header', 'primer_add_primary_navigation', 11 );
    
    	add_action( 'primer_before_header', 'primer_add_primary_navigation' );
    
    } );

    Let us know how that works out!

    • This reply was modified 9 years ago by Evan Herman.
    • This reply was modified 9 years ago by Evan Herman. Reason: formatting edits
    Thread Starter beckyhoefs

    (@beckyhoefs)

    Worked beautifully! Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Move Nav Bar above header Image’ is closed to new replies.