WordPress.org

Ready to get started?Download WordPress

Forums

Magazine Basic
How do I disable built-in Gallery in Magazine Basic (5 posts)

  1. chefjoef
    Member
    Posted 1 year ago #

    I would like to use one of the wordpress built in galleries (specifically a jetpack powered gallery) for my site. How do I turn off the lightbox gallery feature in Magazine Basic?

    Thanks!
    Joe

    http://wordpress.org/extend/themes/magazine-basic/

  2. chefjoef
    Member
    Posted 1 year ago #

    Anyone?
    I should think this would be easy, Is there a place in the theme I can just add comments or remove a file that is taking over my galleries? The built in gallery does not work at all for me.

  3. c.bavota
    Member
    Theme Author

    Posted 1 year ago #

    Add this to the bottom of functions.php:

    remove_filter( 'post_gallery', 'mb_gallery_shortcode', 10 );
  4. chefjoef
    Member
    Posted 1 year ago #

    Hey -

    Thank for that! That does the trick. This is less a question about your theme than in general, but I'm hoping you know the answer off the top of your head).

    Anyway, I am actually using a child theme built from magazine-basic to include customizations for my site. Unfortunately, if I put this in functions.php in the child theme, it doesn't work because the child.functions.php is loaded before the parent. Is there any way to include this in such a way that it will survive theme upgrades?

    Thanks,
    Joe

  5. c.bavota
    Member
    Theme Author

    Posted 1 year ago #

    Try changing the number at the end from 10 to something like 99. Let me know if that actually works. ;)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic