Styling Nav Bar
-
So I’m (very) new to WordPress dev – I’m used to just throwing HTML and CSS together and it all working fine.
I have managed to upload my website (in HTML and CSS) into a WordPress theme, and added the menu function to my functions.php file…
function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ), ) ); } add_action( 'init', 'register_my_menus' );
and added the call to where I want the nav bar to show, in index.php
<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
But I have no idea how to go about styling the menu so that it displays with the styling I already have from when I originally wrote the HTML and CSS. I don’t know what class names are controlling the menu.
I would be really grateful if someone could help. I’m sorry if I’m a complete noob, but I’m really new to developing themes.
Not sure if this will help, but the website which holds the original code is https://projects.ewanjstevenson.co.uk/beta — the links in my header is how I want my theme to look.
- This topic was modified 5 years, 12 months ago by . Reason: code fixed
- This topic was modified 5 years, 12 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Styling Nav Bar’ is closed to new replies.