How To Remove Space Above Header In WordPress

If you are working on a WordPress theme and notice an annoying white space that appears at the top of your pages, it is most… View More

How To Create A Simple WordPress Theme From Scratch

The benefit of making your own custom WordPress theme from scratch is that you have full control over every aspect of your website, and you’ll… View More

How To Add Class Depending On Media Screen Size

On our site, we wanted to control how many columns were displayed and where the sidebar was positioned depending on the user’s screen size.   The… View More

How To Disable Post Revisions In WordPress

Post revisions are a way to restore previous versions of a post.  Revision history can be important in some aspects, especially when there may be… View More

Add An Edit Link to WordPress Posts

If you spot some content or a post title that needs updating, it’s nice to have an edit link to quickly access the edit page. … View More

How To Programmically Remove Widgets From Sidebar

You can manually remove Widgets through the admin settings, but to remove them as an option you would add the following to your child theme… View More

Disable Organize My Uploads In WordPress Programmically

By default, WordPress uploads media files into folders organized by month and year.  You can disable this by visiting Settings > Media and unchecking this… View More

Define WordPress Permalink Structure Programmically

If you create a lot of WordPress sites or are creating a custom theme, and always want the structure of your permalinks the same, you… View More

How To Disable Archive Pages In WordPress

Aside from being bad for SEO (due to duplicate content), most websites don’t need content alternately organized by month, author, category and tag. /////////// //… View More

How To Display Title As A Link In WordPress

echo '<div class="view-full-post"><h1><a href="' . get_permalink() . '">' . get_the_title() . '</a></h1></div>';