WordPress.org

Ready to get started?Download WordPress

Forums

Dovetail theme header???? (2 posts)

  1. fejesrealestate
    Member
    Posted 3 years ago #

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

  2. Kabi
    Member
    Posted 2 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic