How to Create a Custom WordPress Navigation Menu with the Code.

0 65

How to Create a Custom WordPress Navigation Menu with the Code!!!

Well first of all you can use the menu feature in the newer WordPress.

First you want to activate the fact that you want to use this feature via your functions.php file.

The above code defines if you have more than one menu. If you want just one menu delete the secondary. If you do this it would look something like this in your functions.php file:

This will now give you the option to add page items via the menu option under Appearance in the back-end.

Next in your theme you will want to add this to where you want the menu to appear:

The term “menu-header” will be the class of the div tag that the menu gets put in to. You can change this to whatever class you want the div tag to be in your theme.

Next everything else is done entirely via CSS

just make what changes you need to, to make it look like the example you have posted.

How to Create a Custom WordPress Navigation Menu with the Code.!!!

You might also like More from author

Leave A Reply

Your email address will not be published.