15 September 2013 at 21:54 #736Rachel JamesParticipant
Sadly, this doesn’t work out of the box for me. I’m building a site using this theme: http://www.wunder.umbrella.al/light/
There are two places where images occur that I’d love to have fire up in lightbox if a user clicks on them:
1. Posts. Example: http://www.wunder.umbrella.al/light/?p=223
2. Projects. A custom post that includes a slider: http://www.wunder.umbrella.al/light/?work_post=pink-poker
I looked in the theme files for where the single post image and project slider occurs. It’s in single-post.php and single-work_post.php respectively. I even tried to add rel=”lightbox” myself. But I probably got it wrong, because it’s php code and I don’t know exactly how to place the code.
This seems to be the code for the posts image:
<div class="blog_image"> <img />" alt="#"/> </div>
This seems the code for the project slider:
<ul id="slides"> <?php $images = get_field("image_slider"); if($images): foreach($images as $image): ?> <li><img />"/></li> <?php endforeach; endif; ?>
Can you give any guidance on how to add rel=”lightbox” to these two snippets of code?
Thanks so much!15 September 2013 at 22:12 #737BartoszKeymaster
I just took a look at your site and the pages you mention. There is one basic thing: you don’t have any image links out there – those are just images. Lightbox effects in general are made to open image links for e.g. click on thumbnail and it opens a larger version of the image. You have just images, not links, so there’s nothing to open and no place to use lightbox.15 September 2013 at 22:25 #738Rachel JamesParticipant
Oh. Oops. I guess I have the wrong concept.
Thanks for the reply, Bartosz.
Anyone know of an option here? I know these posts have images associated with them. Even a button or something, I’d love to add a way for people see the big version of the image in a responsive lightbox.15 September 2013 at 22:45 #739BartoszKeymaster
It’s more of a theme feature – try to contact the theme author (if it’s possible) and ask for that kind of changes – it would be fairly easy to implement.
- You must be logged in to reply to this topic.
How to Get Support
After you register and login to the site, you may post all plugin support questions in the Support Forum.
If you need to provide private info, please create a ticket and then reply to it using Set as private reply option.