Search code examples
htmltumblr

Linking tumblr photos directly to the source


I'm trying to make my tumblr posts link directly to the source when clicked rather than going to the post page and having the source link there to click.

Here's the code I have for the photo posts.

{block:Photo} <div class="permalink"><a href="{Permalink}">{MonthNumber}.{DayOfMonthWithZero}.{ShortYear}</a></div> <div class="photo"> <div class="photobox"><a href="{Permalink}"><img src="{PhotoURL-250}" alt="{PhotoAlt}"/></a></div> {block:Caption} <div class="caption">{Caption}</div> {/block:Caption} </div> {/block:Photo}

I've tried changing the photobox 'permalink' to source etc with no avail.

Anyone got any ideas?


Solution

  • after comments edit

    It should be <a href="{LinkURL}">

    You have to make sure when you're adding the image that you've specified the target as outside of tumblr too.

    enter image description here