Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Tumblr LightBox

  • This topic is empty.
Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • #195283
    TheDoc
    Member

    I think it’s as simple as linking to the post instead of to the photo.

    So instead of using {LinkURL} or {LinkOpenTag}...{LinkCloseTag} you would just use {Permalink}.

    #209283
    jang
    Participant

    @TheDoc have a quick related question. In my theme, I have div’s on the frontpage that show a preview of each photoset vertically, but they currently link to the post page through a permalink. When I changed it from

    {block:Photoset}
    block:IndexPage}
    {block:Photos}
    <a href="{Permalink}">
    <img src="{PhotoURL-HighRes}" /></a>
    {/block:Photos}
    {/block:IndexPage}
    {/block:Photoset}
    

    to

    {block:Photoset}
    block:IndexPage}
    {Photoset-250}
    {/block:IndexPage}
    {/block:Photoset}
    

    It would enlarge the images within the div when I clicked on them. Is there a way for Lightbox to trigger on the Index page the way it does on the Post page? They have the same div structure on both pages. Thanks!

    #209310
    TheDoc
    Member

    @jang – sorry but it’s been a long time since I’ve been in Tumblr theme land. As long as you are using {Photoset-[val]} it should use the lightbox.

    #209319
    jang
    Participant

    @TheDoc oy, it works just fine – just not in Preview mode, I’m a dummy. Thanks for responding!

Viewing 4 posts - 31 through 34 (of 34 total)
  • The forum ‘CSS’ is closed to new topics and replies.