Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WordPress Body Class 101: Tips and Tricks for Theme Designers

WordPress Body Class

Through out our experience of using WordPress, we have found that often theme designers overthink a certain functionality. They are looking for crazy WordPress filters and hooks to accomplish a task when all they need is some simple CSS. WordPress by default generates a lot… Read More »

Posted on:
Oct 10, 2012
Filed Under:

How to Add Page Slug in Body Class of your WordPress Themes

WordPress Body Class

If you work on WordPress themes on a regular basis, then it is probably best to familiarize yourself with these default WordPress generated CSS cheat sheet. Recently while working on a custom theme project, we found a need to customize certain items based on different… Read More »

Posted on:
Sep 10, 2012
Filed Under:
4

How to Change the Default Text Selection Color in WordPress

How to Change the Default Selection Color in WordPress

You know what makes your website’s design stand out? Attention to details. One of these details that caught our attention on Brian Gardner’s (@bgardner) website was the way his default text selection color matched his design color scheme rather than being the default blue color.… Read More »

Posted on:
Aug 15, 2012
Filed Under:

How to Show the Current Taxonomy Title, URL, and more in WordPress

WordPress Taxonomy

Recently one of our users reported an issue with their theme. They had a share button on all pages including the archive pages. However, the taxonomy archive page share buttons were showing the information of the most recent post instead of the actual taxonomy archive.… Read More »

Posted on:
Aug 8, 2012
Filed Under:
9

How to Add the First and Last Class to WordPress Navigation Menu Items

First and Last CSS classes

Recently while working on a custom design project, we found a need to add some custom styling to our WordPress navigation menu items. This design in particular required different styling for the first menu item and the last menu item. Now we could easily go… Read More »

Posted on:
Jul 27, 2012
Filed Under:

How to Add Google Web Fonts in WordPress Themes the “Right” way

Google Fonts in WordPress

Google Web fonts are amazing free resource for web designers. In WPBv4, we have started using a popular Google Font combination: Oswald and Lora. Some of our users have asked us how to add Google Web fonts in WordPress themes. If you remember, we showed… Read More »

Posted on:
Jun 26, 2012
Filed Under:

Best Practice: Check if Function Exists When Adding in WordPress Theme

Function Exists

The best part about WordPress is plugins. Theme designers also have a tendency of using WordPress plugins for adding cool features. When working on a custom WordPress theme project for a client, one thing you want to make sure is follow the best practice. Yesterday,… Read More »

Posted on:
May 18, 2012
Filed Under:
2

How to Add Odd/Even Class to Your Post in WordPress Themes

CSS

Often when designing a WordPress theme, designers choose to have different styling for odd/even comments. Recently while working on a design, we decided to have different styling for odd/even posts. To do this, we needed to add an odd/even class to appropriate posts. Sadly, this… Read More »

Posted on:
May 8, 2012
Filed Under:
6

How to Avoid Duplicate Post Display with Multiple Loops in WordPress

Avoid Duplicate Posts when using Multiple Loops in WordPress

Recently one of our users ran into the issue of having duplicate post while developing a custom theme. What he was trying to do was show the most recent post on the homepage, and then show a list of random posts in a separate loop… Read More »

Posted on:
Mar 30, 2012
Filed Under:
4