• Resolved Bricar77

    (@bricar77)


    I am using a theme that has lightbox functionality with rel=prettyPhoto[256]. I am trying to figure out how to add this to images in the satellite slideshow so that clicking on them opens the lightbox, similar to lightbox functionality throughout the site. I see that “Custom” is an option in the premium settings for image link, but I don’t see anywhere to enter the custom rel.

    Thanks for your help!

    https://wordpress.org/plugins/slideshow-satellite/

Viewing 1 replies (of 1 total)
  • Plugin Author cpres

    (@cpres)

    Typically the “Custom” solutions automatically adds the rel= into the images, so choosing Custom is more like saying “don’t force anything like thickbox or lightbox, I’ve got my own thing”

    With that in mind, here’s what I’d do:

    Find the file ‘display-image.php’ in /views/orbit, and then find this code:

    } elseif ($imagesbox == "L") {
      $rel = ($frompost) ? "lightbox[".$slider->post_parent."]" : "lightbox[".$slider->section."]";
      $class = "lightbox";

    Add another elseif like this:

    } elseif ($imagesbox == "C") {
      $rel = ($frompost) ? "prettyPhoto[".$slider->post_parent."]" : "prettyPhoto[".$slider->section."]";
      $class = "prettyphoto";
    }

    Then you should be set! I’ll add a PrettyPhoto config option for you on the next release so you don’t have to worry about it being overwritten. Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Rel for Images’ is closed to new replies.