Blog

Remove Extra 10px from Captions

WordPress by default adds an extra 10px to the width of the container that wraps images with captions. This is because the default styling for captions has a thin border that surrounds the entire image. In a recent design I decided I wanted to caption images in a slightly different way and just have the […] Read More

Make Embedded YouTube & Vimeo Videos Responsive

Embedding videos in WordPress is really very simple. Just paste the Video URL into the visual editor and boom! Magic happens! But there is one minor issue. These videos are not responsive by default and will scale incorrectly like this. There are  a number of ways you could fix this, you could go into text […] Read More

Add Defer & Async Attributes to WordPress Scripts

WordPress developers often enqueue scripts incorrectly and sometimes it was done for a reason because WordPress didn’t have a simple way to add the new’ish async and defer attributes. Since Version 4.1 a new filter was introduced that finally provides a simple way to add async/defer attributes without bastardizing the process. apply_filters('script_loader_tag', string $tag, string $handle, string […] Read More

Adding Additional Schema Types to Thesis 2

Thesis 2 comes with a Schema API built in which has some common Schema types added by default, but did you know you can add your own additional Schema with a simple filter. Thesis has the following common Schema types built in: article creativework recipe review Adding additional schema requires two simple filters that can […] Read More

123