• Hi there,

    So, I am trying to add a top bar/menu (not sure what the name is in English) to my website. I mean one of these bars that goes totally on top of the website, where I can put a Contact button.
    I can make the bar appear, but not the button… It seems to be there, but invisible. Sorry if this sounds strange, bit hard to explain.
    I erased the bar again, as it didn’t work and I wasn`t able to fix the problem.

    Does anybody know what I could try? maybe a useful video tutorial?

    Thanks and have a great day!
    Elien

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter elien7

    (@elien7)

    p.s. my website is https://www.easyyoga.nu

    I can clearly see the Main Menu on your website… though are you talking about another Top-bar menu? if yes you have to add bit of code in header.php and functions.php

    Thread Starter elien7

    (@elien7)

    Yes, I mean a top bar menu that goes totally on top of the website (so above the picture).

    Like on this website: https://www.opencircles.nl/

    Any tips?

    here is the code that you would want to add in header.php

    <?php wp_nav_menu( array( ‘theme_location’ => ‘topbar-menu’ ) ); ?>

    if you wish to add styling

    <? wp_nav_menu( array( ‘theme_location’ => ‘topbar-menu’, ‘container_class’ => ‘your_styling_class’ ) ); ?>

    add this code in functions.php

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

    let me know if you need more assistance with that?

    Thread Starter elien7

    (@elien7)

    Thanks Junaid!
    Well…a very basic question to start with: where is the functions.php?
    This is my first wordpress site and I haven’t manually entered any codes yet.

    functions.php can be found in root directory of your theme folder

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem adding a top bar/menu’ is closed to new replies.