WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
[resolved] How to override theme's gallery feautre (2 posts)

  1. metteonline
    Member
    Posted 11 months ago #

    I want to use LPC for displaying my WP galleries.
    However I'm using a child theme built upon Magazine Basic which has a built in gallery feature that overrule my Lightbox settings.

    I've already checked "Use For WordPress Galleries" and all my gallery images link to media file. Still it shows the gallery of my theme.

    I've tried with WP default theme, TwentyThirteen, where the lightbox works fine.

    How do I override/disable my theme's gallery feautre?

    http://wordpress.org/plugins/lightbox-plus/

  2. metteonline
    Member
    Posted 11 months ago #

    I figured it out:

    I added this to my functions.php:

    remove_filter( 'post_gallery', 'mb_gallery_shortcode', 10, 2 );

Reply

You must log in to post.

About this Plugin

About this Topic