WordPress.org

Ready to get started?Download WordPress

Forums

About the gallery_style hook filter (2 posts)

  1. Apiki
    Member
    Posted 4 years ago #

    Hi,

    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
    Member
    Posted 3 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