Searching...
Wednesday 19 October 2016

Coding A Basic Navigation in WordPress



How many men you were going to come down underneath the stage 1 class open in the pool in the U.S has no bullet open a PHP block then we're going to set up the defense arguments for working with the wp not manufacture the first Power Ranger that we're going to pass in container by default what class was that your menu which is an unordered list inside of a development in Speedo and a code from an H1 straight to me well we don't want that extra coat out of it so we're going to set container Equifax yellow praying that they were going to set this location this is where we tell WordPress that this is where are primary menu ribs it said in the past that when we set it up before we told her we have a primary menu but not where that is now we know exactly where that primary menu lives intro template and we're going to use his use of prayer called menu class this will allow us to assign a class to the first element or the unordered list in this case our class is no bullet so what this is doing again is the menu class will be assigned to you well class and now once we set our defaults we could say that the peanut menu with the perimeter of the defaults it we just suck let's go ahead and wrap this existing menu inside of a comment and come over to the front end of her sight and take a look at our menu we could see that we now have a working menu that goes to the exact correct page notice that if we view source we could see that are you out as a class of nobility and ID of Maine menu as well as additional backup inside of each one of these if we come back and edit our menu again and we were the test doing some blanks for example of moving about under portfolio we should see that that's properly reflected inside of our menu you can see that you're logged in it will show you this menu bar up top.

0 comments:

Post a Comment