Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #736
    Rachel James
    Participant

    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!

    #737
    Bartosz
    Keymaster

    Hi James,

    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.

    #738
    Rachel James
    Participant

    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.

    #739
    Bartosz
    Keymaster

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.