Adding a Class to Sub-Menu Parent Items in WordPress
November 21, 2012
I’ve been trying to figure out the best approach to add an indicator to any menu item that contained a sub-menu. Originally, I was using a fancy CSS selector to…
I’ve been trying to figure out the best approach to add an indicator to any menu item that contained a sub-menu. Originally, I was using a fancy CSS selector to…
When I last submitted Magazine Basic to the WordPress theme directory, I was told that they no longer allowed direct modification of certain elements within the header.php file. That meant…
I had previously written about how you can easily trim your text using a build in WordPress function called wp_trim_words() but sometimes you actually want to trim your text to…
If you’ve included any social buttons on your site, such as the Facebook like button, you can usually see how many people have clicked on it. It’s all done through…
If you’ve written a long post, WordPress provides the <!–nextpage–> quicktag so you can divide it into multiple pages. All you need to do is make sure that the theme…
This is just a little snippet I discovered in the WordPress codex that allows your to display the time since your post was published. I wrote it into a little…
If you have a WordPress blog with multiple contributors, you might want to display a list of which ones have been recently active. There isn’t a direct way to gather…
I’m not too sure if breadcrumbs are still popular when it comes to modern websites but I find them pretty useful when navigating around. I put together a simple function…
I needed to figure out how to allow a user to use either their username or email address to log into WordPress. It took a bit of rooting around but…
I was working with Digibomb on presswork.me and we needed to add the current post’s category name to the body class in order to style the page differently from the…