WordPress.org

Ready to get started?Download WordPress

Forums

Gallery to Slideshow
[resolved] How to disable plugin on specific page (3 posts)

  1. CarolineElisa
    Member
    Posted 2 years ago #

    Hi there,

    I would like to disable this plugin on a specific page, so that the [gallery] shortcode displays the default WordPress gallery, i.e. a grid of thumbnails linking to full-size images.

    I tried removing the plugin files from the footer using the code below in my functions.php, but that still loads the html, just doesn't display the images...

    add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
    function my_deregister_javascript() {
    	if ( is_page('Street style') ) {
    	wp_deregister_script( 'gallery-to-slideshow' );
    	}
    }

    Hope someone can help!

    http://wordpress.org/extend/plugins/gallery-to-slideshow/

  2. Matt
    Member
    Plugin Author

    Posted 2 years ago #

    Hi CarolineElisa,

    You should remove all filters from post_gallery and then attach back the default from WordPress.

    Kind Regards!

  3. 21clg
    Member
    Posted 1 year ago #

    try "Plugin Organizer" plugin by Jeff Sterup. You have to enable "Selective Plugin Loading" (make sure to follow their directions given for enabling it)

    Then in your post/page editor there is a box below the compose window with tickboxes to disable for that page

    took me over 20 Google and WordPress plugins repository searches to finally find a simple solution. Hope it works for you too!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic