Grow your CSS skills. Land your dream job.

Last updated on:

Remove Gallery Inline Styling

add_filter( 'use_default_gallery_style', '__return_false' );

Reference URL


  1. Vitor Melo


  2. Simple and usefull … thanks!

  3. Tyler
    Permalink to comment#

    Doesn’t work in WordPress 3.6, inline styles are still there.

  4. Metacrawl
    Permalink to comment#

    Oh! Works great in 3.9

Leave a Comment

Current day month ye@r *

*May or may not contain any actual "CSS" or "Tricks".