Subscribe by email conflict with Featured Content Gallery

Hi there

This one has been driving me a little crazy for a couple of hours!

Subscribe by email is conflicting with Featured Content Gallery - it drops the image off the front page.

You can see what it's doing here:

http://ecogreenlivinghq.com

Any help on this will be muchly appreciated

cheers

Stef

  • Philip John

    Hiya!

    This appears to be an issue with the gallery plugin as it's chucking out this error:

    Uncaught TypeError: Object function () {
    		this.fireEvent('onStart');
    		this.loadingElement.style.display = "none";
    		this.lastIter = this.maxIter - 1;
    		this.currentIter = 0;
    		this.galleryInit = 0;
    		this.galleryElements[parseInt(this.currentIter)].set({opacity: 1});
    		if (this.options.showInfopane)
    			this.showInfoSlideShow.delay(1000, this);
    		var textShowCarousel = formatString(this.options.textShowCarousel, this.currentIter+1, this.maxIter);
    		if (this.options.showCarousel&&(!this.options.carouselPreloader))
    			this.carouselBtn.setHTML(textShowCarousel).setProperty('title', textShowCarousel);
    		this.prepareTimer();
    		if (this.options.embedLinks)
    			this.makeLink(this.currentIter);
    	} has no method 'fireEvent'
    gallery.startSlideShowjd.gallery.js.php:230
    (anonymous function)

    I suspect it might not be using the proper enqueue functions for loading javascript.

    Thanks,
    Phil

  • Philip John

    Sorry, I only speak two languages: English and Bad English :wink:

    Basically, when a plugin or theme has some Javascript or CSS that it wants to include there is a special method provided by WordPress for doing so.

    Using that method ensures that they are only inserted where necessary to help avoid conflicts. It seems as though the gallery plugin is not using that method and as such the Javascript is included in a way that creates a conflict.

    I'd recommended contacting the developer of the plugin to let him know and see if s/he could look into the issue with you.

    Thanks,
    Phil

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.