How to disable permalinks

4,118 views
Skip to first unread message

Laurens Martin

unread,
May 16, 2012, 11:06:47 AM5/16/12
to Tumblr Themes
Hi,

I'm currently making a photography portfolio Tumblr theme with a full
background image slide show, where the images are the photo posts the
user submits. However, I don't want each image to have a page of its
own, and I'd like to disable permalinks all together. Is there a way
to do this?

Cheers,
Laurens

Sean Zhu

unread,
May 19, 2012, 12:19:09 AM5/19/12
to tumblr...@googlegroups.com
You can't disable permalinks, but you can use JavaScript to redirect permalinks to an appropriate index page. Here's what you probably cannot change:
- The permalink page will have a 'success' HTTP code because you can't change HTTP headers.
- Clicking the permalink link on the dashboard (the post corner) will take you to the permalink page.

If you for some reason want to actually prevent people from accessing content from permalinks, you can make it so that the post content never shows up on permalinks. Enclose post content in {block:IndexPage}{/block:IndexPage} (which won't show up on permalink pages).

Laurens Martin

unread,
May 21, 2012, 9:56:48 AM5/21/12
to Tumblr Themes
Oh, should have thought of redirecting before. Thanks for the idea ;)

Ken, Kendy, Kandy, Kenny

unread,
May 28, 2012, 4:06:45 PM5/28/12
to Tumblr Themes
Hey! this is what I would do.

<style type="text/css">.permalink {display: none;}
</style>
<body>
{block:Date}<div class="permalink">{block:RebloggedFrom}<a
href="{ReblogParentURL}">{lang:Reblogged}</a>{/block:RebloggedFrom}
{block:ContentSource}<a href="{SourceURL}">{lang:Souce}</a>{/
block:ContentSource}
</body>

display: none; just hides it. It won't show up, so yes. There is a
way.

vanillin...@ilkposta.com

unread,
Jul 24, 2012, 3:30:02 PM7/24/12
to tumblr...@googlegroups.com
Thank you so so so much it worked for me! I've been looking for a way for days!

info.cam...@gmail.com

unread,
Aug 25, 2012, 8:43:03 PM8/25/12
to tumblr...@googlegroups.com
hi kendall!
i'm a beginner trying to customize my tumblr by having it
skip the permalink page and go directly to the content source,
so i was so happy to find your genius solution!

i don't know where to insert it into the custom HTML code...
i've tried about 6 spots (including up where i saw

<style type="text/css">

and down in the custom CSS area, and in the javascript section.

wherever i tried pasting it, each time i "update preview"
the preview of the index page goes blank... so i remove it   :)

any tips would be immensely appreciated -- thx SO much!

hallie

walk...@gmail.com

unread,
Sep 26, 2012, 9:20:13 AM9/26/12
to tumblr...@googlegroups.com, info.cam...@gmail.com
I'm a beginner, and I'm trying to do this same thing. I want clicking an image to take you right to the click-thru link, rather than to a permalink page where it is necessary for you to click the image again to get to the click-thru link. Help?

Sean Zhu

unread,
Sep 26, 2012, 4:58:04 PM9/26/12
to tumblr...@googlegroups.com
You can use {block:IndexPage} (renders on pages that show a list of posts) and {block:PermalinkPage} (renders on pages that show a single post). You want photos on index pages to link to permalinks and you want photos on permalink pages to link to the click-thru link.

<a href="{block:IndexPage}{Permalink}{/block:IndexPage}{block:PermalinkPage}{LinkURL}{/block:PermalinkPage}>
(image code)
</a>

Simon Kidane

unread,
Sep 29, 2012, 9:09:31 PM9/29/12
to tumblr...@googlegroups.com, ele...@gmail.com
Hey Guys!

So I am trying to make customizations to this theme: http://brand-two.tumblr.com/

When you click a photo, the current version displays the permalink page, like this: http://brand-two.tumblr.com/post/32280885081

But I want it to go directly to this site (display the photo in high resolution AND has a back button to the original Tumblr page): http://brand-two.tumblr.com/image/32280885081

Is it possible to make it "skip" the permalink page and go directly to the high resolution page?

Thanks guys!

Simon Kidane

unread,
Sep 30, 2012, 9:55:46 AM9/30/12
to tumblr...@googlegroups.com, ele...@gmail.com
Solved it!

Heres the code I used: {LinkOpenTag}<img src="{PhotoURL-HighRes}" border="0" style="float:left; margin-bottom:10px;"/>{LinkCloseTag}
Quite similar to other suggestions here but that's the one that worked for me.

Great thread, thx guys! :)


Den onsdagen den 16:e maj 2012 kl. 17:06:47 UTC+2 skrev Laurens Martin:

jeanclaudephoto

unread,
Sep 30, 2012, 4:57:05 PM9/30/12
to tumblr...@googlegroups.com, ele...@gmail.com
Sorry for the dumb question, but exactly where did you insert that bit of code, Simon? I'm using a similar theme (Narnia) and I'd like to disable the permalink page as well.

Simon Kidane

unread,
Oct 2, 2012, 9:37:03 AM10/2/12
to tumblr...@googlegroups.com, ele...@gmail.com
Hey jeanclaudephoto!

No dumb question at all..I've been asking the same question in other threads all weekend.

So in the Narnia Theme code, at line 1617 (anywhere around that line of code for you), it says:

<divabc class="post photo"><a href="{Permalink}"><img src="{PhotoURL-500}" border="0" /></a>

I removed that whole bit and replaced it with the code I posted before.

You should know that with this minor change, if you make a 'Photoset" posting on your tumblr (that is whenver you post 1 or more images at the same time), it will still go to Permalink page because it needs to handle more than one image. So if you want all your images to go directly to the High Resolution page, you need to always post 1 image at a time.

Good Luck!

maxgag

unread,
Oct 9, 2012, 10:11:27 PM10/9/12
to Tumblr Themes
Hi everyone! I'm new to this group because I wanted to ask you all a
very precise question!
With my Theme, i cant find the divabc thing in my html code. Therefore
i am not able to skip the permalink page and go directly to the full
size image page...
Is there anyone out there who would be able to help me!
Thank you soooo much i've been sleeping on this problem for too long!
http://gagnonmaxime.tumblr.com/
Max

maxgag

unread,
Oct 9, 2012, 10:33:16 PM10/9/12
to Tumblr Themes
Got it on my own! THX

On Oct 9, 10:11 pm, maxgag <gagnonmax...@gmail.com> wrote:
> Hi everyone! I'm new to this group because I wanted to ask you all a
> very precise question!
> With my Theme, i cant find the divabc thing in my html code. Therefore
> i am not able to skip the permalink page and go directly to the full
> size image page...
> Is there anyone out there who would be able to help me!
> Thank you soooo much i've been sleeping on this problem for too long!http://gagnonmaxime.tumblr.com/
Reply all
Reply to author
Forward
0 new messages