• Hi there!

    I want to add a new menu location (for an existing social menu) on the home page of my site – just under the tagline. Please refer to Imgur post for exact location.

    In other words, I want to reuse the social menu, currently shown in the footer alone, in another location on the home page.

    I looked up WordPress Codex Navigation Menu resource and I guess that I need to define the menu location with a piece of code <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?> .

    If this is correct, I just do not know where to insert this code.

    Could someone here please advice whether this is the correct method and how to achieve this requirement?

    Thank you,
    Kind regards,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    If you have created a Child Theme, then copy over the header.php file to the child theme, and then in the footer.php file of the original theme, copy out the php for the social nav section and add it to the place in child theme header.php where you want it located. I would add a div around it with a CSS id or class so that you can then style and position that with a new CSS rule.

    It may also require adjustments to some of the other header elements CSS to make room and have everything align correctly.

    Thread Starter backpackingseries

    (@backpackingseries)

    @sacredpath

    Thank you very much for this help.

    Kind regards,

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    You are welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add new menu location on home page?’ is closed to new replies.