Feeds

style

 Better writing: Don't exaggerate (except you are in the PR industry)

Submitted by Markus Merz on January 18, 2008 - 8:49pm in

Is it definitely most important to express your very deep feelings?

Keep your articles tidy

Burlesque overstatements and using loads of exaggerated attributes are not a good way to write a good blog post. Sometimes you have to step back and take care to not use too many adverbs.

The most important tip is of course to avoid superlatives...

Read the rest of this entry


 WordPress: Active Page Tabs

Submitted by nathanrice on June 22, 2007 - 6:07pm in

If you browse the WordPress Theme Viewer, take notice of where most designers place their page links. Most designers put them in a horizontal menu either directly above or below their header image. What you might also notice is that many designers treat the links like tabs with a link hover effect. Sometimes, that link style (something that sets the tab apart on hover) will be shared with an active page style. In other words, a tab will look different than the other tabs when it is either being hovered over by the mouse, or if the tab represents a page that is currently active.

Thankfully, the good folks at WordPress decided to add a great little feature to the wp_list_pages function. When a page is active, the list item that represents that page gets a class added to it called "current_page_item". This is in addition to the "page_item" class that is on all page list elements (elements can have multiple classes). So now that we know that this new class is automatically added to active list items, we can take advantage of that and style that element based on the class, to demonstrate that the page tab is active.

As always, I'm assuming you know basic web coding, and this isn't a tutorial on how to make tabs in CSS. If you need help with that, check out Listamatic.

The WordPress Template Code

Read the rest of this entry