Problem adding a top bar/menu
-
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
-
p.s. my website is http://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
Yes, I mean a top bar menu that goes totally on top of the website (so above the picture).
Like on this website: http://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?
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
The topic ‘Problem adding a top bar/menu’ is closed to new replies.