Disable plugin on certain pages (3 posts)

  1. livesimplybyannie
    Posted 2 years ago #

    Sure this is a simple problem for a person who understands code, which I don't.

    I installed the plugin "Photo Galleria" which I'm using on one page, and want it to remain active there. There is no easy option in the plugin settings to select which pages the plugin should be activated on, meaning that Photo Galleria has now become the default gallery format. Trouble is, I want to make another gallery page without it.

    Can anyone help me figure out how to disable the plugin on certain pages? Maybe some code I can write into the custom css?

    Many thanks in advance!!

  2. Tara
    Volunteer Moderator
    Posted 2 years ago #

    contact the plugin author and see if there is a hack for the feature you want.

  3. bcworkz
    Posted 2 years ago #

    Galleria works by taking over the default [gallery] shortcode. Perhaps the easiest fix would be to create a new shortcode using Shortcode API. Call it something like [galleryb]. The original gallery callback to use in add_shortcode() is 'gallery_shortcode'.

    Once setup, you can still use the media uploader to build a gallery. The shortcode inserted will still be [gallery] to use Galleria. Simply change the shortcode to [galleryb] to use the original gallery or whichever was specified in add_shortcode() instead of Galleria.

    This takes a little coding, but hopefully you can figure it out from the examples, it's relatively straight forward. The code can be placed in your theme's functions.php, or create a very basic child theme or very basic plugin, separate from Photo Galleria.

Topic Closed

This topic has been closed to new replies.

About this Topic