Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter netpack

    (@netpack)

    Hello Alex,
    example:
    I have 1 button (button1) and 1 gallerie (gallery1)
    I want to open gallery1 by clicking button1.

    I made this with “simple gallery” with the next way:
    ..the button1 class is: gallery1-trigger
    ..the gallery1 class is: gallery1
    …the script:
    jQuery(document).ready(function(){
    jQuery(‘.gallery1-trigger’).click(function(){
    jQuery(‘.gallery1 .et_pb_gallery_item:nth-child(1) img’).click();
    });
    });

    It works well with “Simple gallery” pugin, but I don’t know what element to use instead of this, if i use visual portfolio plugin: “.et_pb_gallery_item:nth-child(1) img’).click();”

Viewing 1 replies (of 1 total)