Support » Fixing WordPress » Dovetail theme header????

  • fejesrealestate

    (@fejesrealestate)


    I would love to add a nav bar or horizontal menu to my header and can not find how??? can anyone help? please!!

Viewing 1 replies (of 1 total)
  • Create a child-theme, and add this to your function.php

    <?php
    function register_my_menus() {
    register_nav_menus(
    array( ‘header-menu’ => __( ‘Header Menu’ ), ‘extra-menu’ => __( ‘Extra Menu’ ))
    );
    }
    add_action( ‘init’, ‘register_my_menus’ );
    ?>

    also need to modify the header.php
    Find the <div id=”documentBody”> entry and paste this after

    <div id=”custom_menu”>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘header-menu’ ) ); ?>
    </div>

    I’ve called it custom_menu, but change it whatever you want it to.
    Also need to add to your style.css (stylesheet) for further tuning.

    My blog is based on this theme too.

    Kabi

    [signature moderated]

Viewing 1 replies (of 1 total)
  • The topic ‘Dovetail theme header????’ is closed to new replies.