Archive for the 'How-To' Category

WordPress Multi-Level Drop Down menu using jQuery

WordPress jQuery Multi-Level Drop-Down MenuAs WordPress theme designers, we’re often faced between the choice of going for purely CSS drop-down menu or javascript drop-down menus in our struggle with cross-browser compatibility.

The aim of this short tutorial is help you build a simple multi-level drop-down menu in your WordPress theme using jQuery’s JavaScript library to ensure cross-browser compatibility.

Continue reading ‘WordPress Multi-Level Drop Down menu using jQuery’

Putting a ‘New Post’ image label next to WordPress entries posted within the last 24 hours

New Post Label

… or perhaps entries posted in the last 48 hours? Ever wanted to put a small image label next to your post telling readers “Hey, this post is barely 2 days old. It’s new!”

Of course, putting a new post label is nothing new. But again, this tiny feature does not come with default WordPress. Luckily with just one or two lines of PHP code, you can modify your WordPress theme to label your new entries automatically.

The following code sample shows how you can label your posts with a tiny image ‘new.gif’ if your post is less than 2 days old. Within your latest entries Loop, we’ll put the ‘new.gif’ image label right new to your post title:
Continue reading ‘Putting a ‘New Post’ image label next to WordPress entries posted within the last 24 hours’