wpPro offers design, development and full-service professional WordPress hosting service for serious bloggers web design web development professional WordPress hosting

wpPro offers design, development and full-service professional WordPress hosting service for serious bloggers

Anatomy of a Magazine Style Premium WordPress Theme - Part 3.1 “Navigation – Second Level Menu”

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

The end result with a little mod will look like this:

#topbar .subwrap {
background: #fff;
height: 51px;
width: 958px
}
.submenu {
background: #fff;
height: 34px;
line-height: 34px;
padding: 0;
margin: 0;
}
.submenu a {
color : #790000;
background : inherit;
text-decoration : none;
padding: 0 10px 0 10px;
line-height : 23px;
}
.submenu a:hover, .submenu .current {
color : #000;
background : inherit;
height : 23px;
text-decoration: underline
}
.submenu ul {
list-style : none;
padding : 0;
margin : 0;
}
.submenu li {
float : left;
margin : 0 0 0 0px;
display: inline;
}
/* Override Children */
.children {display: none;}

Note how I made a few changes to .subwrap and .submenu to differential it from the main menu, very subtle change though. Also note how I added a style at the very end to prevent the child(ren) category(ies) from being displayed.

That’s it, check the result, a second level menu using categories.

Next time, we will discuss conditional and dropdown/slidedown menus.

02.11.2008 - 7:22 pm - Design, How to, Resources, Tips - 323 views -

13 Responses to “Anatomy of a Magazine Style Premium WordPress Theme - Part 3.1 “Navigation – Second Level Menu””

Pages: [1] 2 3 »

  1. 1
    CleverSage Says:

    Awesome! I’ve never really been that technically-oriented, but you’re breaking down how these themes are made makes it so much easier to digest, thanks so much!

  2. 2
    Sunny Says:

    @ CleverSage

    Thank you. I am glad I could be of some use :-)

  3. 3
    Oz Says:

    Is it easy to customize the header on this theme w/ an image? I love it, but would like to plug in a logo instead of the text. Great work!

  4. 4
    Oz Says:

    Also - I notice that the posts are short and then say “Read More.” Does it only display a certain number of characters and then readers will need to click? Is that an option that can be turned off so that the entire post can be displayed?

  5. 5
    Website Design Linda Says:

    I love how you provide some code and explain the variations.

    For instance, the navigation in the header and the template ttag and code your provided.

Pages: [1] 2 3 »

Leave a Reply

Have Your Say »





Use SimpleCode while including codes.