Filters the gallery shortcode’s default CSS styles and opening HTML div container.
Description
To remove the CSS entirely, use the use_default_gallery_style filter instead:
add_filter( 'use_default_gallery_style', '__return_false' );Parameters
$gallery_stylestring- Default CSS styles and opening HTML div container for the gallery shortcode output.
Source
$output = apply_filters( 'gallery_style', $gallery_style . $gallery_div );
User Contributed Notes
You must log in before being able to contribute a note or feedback.