Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    lightbox thumbnails not showing up

    Hi,

    I've included lightbox on the website I'm building. I have got it to work functionally, however I can't get the thumbnails to work. I've tried all different image links /, ./, ../ and still only get text links working http://edenwebbdesign.se/galleri.html

    Very grateful for your help,

    Kirai

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,691
    Thanks
    25
    Thanked 656 Times in 655 Posts
    First off = You are not displaying any images in your HTML code:
    Code:
    <a href="/images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
    <a href="/images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
    <a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
    Your asking HTML to show 'image #1' and that's what it shows. You need to put a images tag between the anchor tags.

    The thumb nails should be called thumb-1.jpg, etc. Go get those and put them into the folder with your main images. Then use
    Code:
    <a href="images/image-1.jpg" rel="lightbox">
      <img src="images/thumb-1.jpg" alt> />
    </a>
    Also get rid of all the ../ things in your head a / should work.

  • #3
    New Coder
    Join Date
    Jun 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks man,

    worked like a charm


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •