• Hi, I need the rel attribute to hardcode the lightbox for the galleries shown in the link above.

    Is that possible?

    ty

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi agra,

    There is already an option in the plugin to choose what images get the lightbox effect. Just go to the Basic area on the plugin Options page. The first option is called “Images With Lightbox”. There, for your requirements, you can just check the “Images with the Following CSS Selectors” choice and then specify the class of the image. All the images on the page you linked to have the class

    .attachment-gallery-twocol
    

    so you could just use that.

    Thread Starter Agramonis

    (@agramonis)

    Hi,

    ok, I’ve already seen the option with the css selector, but I need to open a whole gallery in the lightbox.

    At the moment I have this, need to change “data-gal=”prettyPhoto[gallery]” with your plugin, cause prettyPhoto doesn’t really work on mobile:

    <a class="zoom" title="<?php the_title(); ?>" data-gal="prettyPhoto[gallery]" href="<?php echo esc_url($currenturl); ?>"><span class="fa <?php echo esc_attr($currenticon); ?>"> </span></a>

    Plugin Support jaysupport

    (@jaysupport)

    In that case, just find the ID or class of the containing div that all the gallery images are in, and do something like:

    .class-name-of-containing-div img
    
    Thread Starter Agramonis

    (@agramonis)

    I understand you, but in this case I can’t find any ID or class to refer on, if you like here https://bodyfit-beta.webillusions.info/galerie/ at the moment prettyPhoto is activ, the first image of the gallery opens the whole gallery in a lightbox with slideshow, can’t figure out, how to do this with your plugin.

    Plugin Support jaysupport

    (@jaysupport)

    There should always be some kind of containing div around the area with your images. Even if you had a blank page with no coding other than a body tag and some images in it, you could still do something like the following as the CSS selector:

    body img
    

    So there will always be a way to select the images you want with CSS.

    Alternatively, you could just put your images in a WordPress gallery and then just enable the WordPress gallery choice for our lightbox.

    Thread Starter Agramonis

    (@agramonis)

    Ahh ok, yes, the images are wrapped here, for example the first gallery:

    https://bodyfit-beta.webillusions.info/dt_galleries/flexible-muscle-stretches/

    If I try to input the class .portfolio-single-slider img in the backend of your plugin, the whole page doesnt work anymore, it keeps loading and loading.

    Hmmm…perhaps this plugin doesn’t work here, because this is only one gallery, I have a few, and I can’t imagine, how to tell the plugin, to open only the images related to each single gallery.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘rel attribut to show lightbox’ is closed to new replies.