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

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