This blog is NOFOLLOW Free!
Posted @ 2:13 pm

As you may know, I am helping to administer The Woolly Mom. However, the theme we are using doesn’t have a dynamic sidebar. I must correct this! The steps: Decide the layout, Write the CSS, Make it dynamic, Add the Widgets.

Today’s Topic: Moving The Page Navigation

The next step in transforming The Woolly Mom’s Sidebar is to pull the Page listing out of the sidebar and turn it into a menu. To do this I am going to make a CSS rollover list. Lets start with the HTML for the menu:

<div>
<ul id="topmenu">
<li><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
<?php wp_list_pages('title_li=&depth=1&'.$page_sort.'&'.$pages_to_exclude)?>
</ul>
</div>

This will place all of the menu items in a list with an ID of topmenu. Now we need to define the constraints of the list. We start by defining the constraints of the unordered list itself:

ul#topmenu {
margin-left:10px;
padding-left:0;
margin-top:5px;
padding-top:0;
white-space:nowrap;
}

Now we need to clear the style of the list items and set the display to inline:

#topmenu li {
display:inline;
list-style-type:none;
}

The easiest way to make the menu items “flashy” and roll over is to use links with hover changes. You can also do this by using rollover images, but I decided to go with the easier method. Set the “box sizes” and font options for the links:

#topmenu a {
padding:3px 6px;
font-weight:bold;
font-size:14px;
}

Then set the colors:

#topmenu a:link, #topmenu a:visited {
background:#6699CC;
color:#FFF;
text-decoration:none;
}

Now change the colors by using link hover:

#topmenu a:hover {
background:#FF6633;
color:#FFF;
text-decoration:none;
}

Viola! Here is the finished product:

Woolly Mom\'s New Menu

And when one hovers over an option:

Woolly Mom\'s New Menu With An Option Highlighted

Rate this with SezWho :
2.5

Bookmark and Share

Rate this post:
1 Star - So-so...2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars - GREAT! (No Ratings Yet)
Loading ... Loading ...



Related Posts


  ∫  


Categories:   Design / Maintenace   •   Running a Website

Tags:     •  






RSS feed

Comments

No comments yet.

Sorry, the comment form is closed at this time.

 
Subscribe to
The Webmaster's Edge RSS

Subscribe by
E-Mail Subscription


Recent Posts Title
Recent Posts NoDisplay
Categories Title
Categories NoDisplay
Comments Title
Tag Cloud Title
Tag Cloud NoDisplay
Archives Title
Archives NoDisplay
Commentators
  • No commentators.
Shop Cloud Title
Shop Cloud