Jigoshop double lightbox

Support Area Forums Foxy Jigoshop double lightbox

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
URL to the page in question:
  • Author
    Posts
  • #11083
    Rob
    Participant

    When I deactivate the Jigoshop lightbox . . . there is no popup. When I activate jigoshop lighbox . . . I get two popup instances on the product page. Help!

    #11084
    Bill Robbins
    Moderator

    Rob,

    It sounds like you may need to turn off the lightbox that’s bundled with the theme to keep it from doubling. You can do that in the first tab of the theme options page. There’s a spot where you can disable it there.

    If you still run into double light boxes, let me know,
    Bill

    #11085
    Rob
    Participant

    Yeah, but I am using the themes lightbox for galleries.

    #11086
    Bill Robbins
    Moderator

    You can edit Foxy’s lightbox out of the product galleries. Here’s how:

    1. Go to the Appearance section and select Edit.
    2. From the list of files on your right, choose custom-js.php and look for this section:
      
      // Add lightbox class to single images with links:
      	jQuery('a').each(function(){
      		
      		if ( this.href.toLowerCase().substr(-4).indexOf('.jpg') < 0 &&
      		     this.href.toLowerCase().substr(-5).indexOf('.jpeg') < 0 &&
      		     this.href.toLowerCase().substr(-4).indexOf('.png') < 0 &&
      		     this.href.toLowerCase().substr(-4).indexOf('.gif') < 0 )
      		return;
      
      		var $lnk = jQuery(this); 
      		
      		$lnk.addClass('lightbox');
      	
      	});
      
    3. Delete it.
    4. Save your changes.

    That will take out the theme's lightbox from everywhere except page/post galleries.

    Let me know if you have any trouble,
    Bill

    #11087
    Rob
    Participant

    Will try it . . . thanks

    #11088
    Rob
    Participant

    I actually disabled the lightbox in both the theme and Jigoshop. I then installed lightbox for WP and it worked for both without tweaking anything.

    #11090
    Bill Robbins
    Moderator

    That works too. There seems to be no shortage of ways to hook up a lightbox in WordPress.

    #11091
    Rob
    Participant

    I actually disabled Jigoshop’s light box and the theme was still active WITH the plugin active and it worked.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Jigoshop double lightbox’ is closed to new replies.