Browsing Category
wp-themes
How to Set oEmbed Max Width in WordPress 3.5 with $content_width
Today, we saw the release of WordPress 3.5 which came with tons of amazing features. As we upgraded one site after another, we noticed an issue on one of the sites we manage. The embedded video size were changed, and the embedded videos…
How to Add Page Slug in Body Class of your WordPress Themes
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…
How to Show the Current Taxonomy Title, URL, and more in WordPress
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…
How to Change the Default Text 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…
How to Add a Custom Author Profile Page to Your WordPress
Do you want to add a custom author profile page to your WordPress site? Many WordPress themes have limited author profile information on their author archive page. In this article, we will show you how to create a custom author profile page…
How to Add the First and Last Class to WordPress Navigation Menu Items
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…
Best Practice: Check if Function Exists When Adding in WordPress Theme
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…
How to Create a Full Width Page in WordPress
Do you want to create a full width page in WordPress? Many WordPress themes already come with a built-in full-width page template that you can use. However some themes do not have that feature. In this article, we will show you how to…
How to Avoid Duplicate Post Display with 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 on the…
How to Get All Post Attachments in WordPress Except for Featured Image
Recently while working on a custom project for a client, we had to get all post attachments from a custom post type and display them at one place. Because we were creating a grid display, we had each post’s featured image serving the…