Viewing: WordPress filters

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, but that is no longer the case. Since Version 4.1 a new filter has been introduced that finally provides a less painful solution to add async or defer […] Read More