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

  1. metteonline
    Posted 2 years 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?


  2. metteonline
    Posted 2 years ago #

    I figured it out:

    I added this to my functions.php:

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Lightbox Plus Colorbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic