• 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!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

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

    Moderator bcworkz

    (@bcworkz)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable plugin on certain pages’ is closed to new replies.