• Below is the main js for the fbanner plugin. I want to disable it on a specific page, maybe a couple pages. My reading of this code leads me to believe I can hide it on certain pages if I input the page id in just the right spot. My question: where is just the right spot? Thanks for helping.

    /**
     * Main JS File
     *
     * @author Your Inspiration Themes
     * @package YITH Footer Banner
     * @version 1.0.3
     */
    jQuery(document).ready(function($) {
        if($.cookie(templateDir) == '1') {
            $(".fbanner").hide();
        }
        $("#showhidefbanner a").on('click',function(event){
            event.preventDefault();
            $('.fbanner').hide();
        });
        $("#showhideforever a").on('click',function(event){
            event.preventDefault();
            $(".fbanner").hide();
            $.cookie(templateDir, '1',{ expires: 365, path: '/' });
        });
    });
  • The topic ‘Disable plugin on a specific page’ is closed to new replies.