WordPress.org

Ready to get started?Download WordPress

Forums

Display proper css for nav bar (1 post)

  1. NordSud
    Member
    Posted 4 years ago #

    Hello i'm having trouble to display the right css for my nav bar... using the php fonction

    Here is my fonction in the fonction.php

    function register_my_menus() {
        register_nav_menus(
        array('header-menu' => __( 'Nav' ) )
      );
    }
    add_action( 'init', 'register_my_menus' )

    here is my code where i want the nav bar

    <?php wp_nav_menu( array( 'Nav' => 'header-menu' ) ); ?>

    and this is the nav bar that i want..

    [Code moderated as per the Forum Rules. Please use the pastebin for code blocks longer than 10 lines. Post smaller code blocks in-between backticks.]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.