About the gallery_style hook filter (2 posts)

  1. Apiki
    Posted 6 years ago #


    We have the gallery_style hook filter that let me remove the gallery style. But, if I apply a function to remove that style, I remove the opening gallery div too.

    Look the code:

    <div id='$selector' class='gallery galleryid-{$id}'>");

    wp-includes/media.php. Line 756

    What about to apply the gallery_style filter just in gallery style not in HTML markup?

  2. bookchiq
    Posted 6 years ago #

    I used the method described here. You could also use the plugin mentioned on that post, too.

Topic Closed

This topic has been closed to new replies.

About this Topic