Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


Can I tweak my blogger templates to add true permalinks?

Dave, I have noticed on other people's blogs that they have these nice permalinks that lead people to individual pages, one for each entry. But Blogger doesn't always seem to generate these separate weblog entry pages for me. Is there some way to fix this?


Dave's Answer:

As a sometimes user of Blogger, I know what you mean about its limitations and occasional oddities! It turns out that you can tweak the so-called templates on your Blogger account to add just the feature you want, though it's a bit tricky.

To get the exact details, I'm going to turn to Sarah King, who has written up a nice tutorial of exactly what templates changes are required. First, though, you need to know how to get to your template so you can edit it.

Fortunately, it's easy. Log in to your Blogger account and look at the tabs along the top of the screen. They are Posting, Settings, Template, and View Blog. Click on Template. Now, for good luck, select all the text in the box and paste it into a spare Word document or other spot where you can recover it if needed.

Now, near the top is a section that looks like this:

<blogitemtitle>
  <h3 class="post-title">
    <$BlogItemTitle$>
  </h3>
</blogitemtitle>

To make the title of the articles clickable through to the permanent URL, add the following (highlighted in bold to make it easier to see):

<blogitemtitle>
  <h3 class="post-title">
    <a href="<$BlogItemPermalinkURL$>" title="<$BlogItemTitle$>">
    <$BlogItemTitle$></a>
  </h3>
</blogitemtitle>

That fixes the top title to link to the permanent page. While we're at it, let's also add an explicit permalink near the bottom too. This one's a bit more complex, though. Ready?

<p class="post-footer">
  <em>posted by <$BlogItemAuthorNickname$> @
  <a href="<$BlogItemPermalinkUrl$>"
    title="permalink"><$BlogItemDateTime$></a></em> &nbsp;
 <MainOrArchivePage><BlogItemCommentsEnabled>
   <a class="comment-link"
   href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>>
  <$BlogItemCommentCount$> comments</a>
   </BlogItemCommentsEnabled></MainOrArchivePage>
<$BlogItemControl$>
</p>

Let's give that some tweaks to have the title reappear (which is good for search engine findability too) as part of the permalink, and also have an explicitly named permalink entry too:

<p class="post-footer">
  <em>posted by <$BlogItemAuthorNickname$> @
  <a href="<$BlogItemPermalinkUrl$>"
    title="permalink"><$BlogItemTitle$>: <$BlogItemDateTime$></a></em> &nbsp;
 <MainOrArchivePage><BlogItemCommentsEnabled>
   <a class="comment-link"
   href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>>
  <$BlogItemCommentCount$> comments</a>
   </BlogItemCommentsEnabled>
  <a href="<$BlogItemPermalinkUrl$>">permalink</a>
  </MainOrArchivePage><$BlogItemControl$>
</p>

Rather impossibly complex, but if you take your time and step through these tweaks, you'll find that you've just made a couple of very useful and helpful improvements to your Blogger template!

My thanks to Sarah King for allowing me to republish and tweak her Essential change to Blogger templates.

Updated February, 2006 to fix an error with the first use of $BlogItemPermalinkURL$ in the code example.


More Useful Blogs and Blogging Articles:
✔   Get my shopping cart plugin to work with WordPress?
We've put in a shopping cart for a client that's not working, and we need some help! The cart is currently using the...
✔   Embed an audio player on a blog or web page?
I have some mp3 audio files I've recorded and would like to have people who visit my site be able to listen to...
✔   Can I write a guest review for AskDaveTaylor.com?
Hi Dave. I'm a big fan of your site and love that you're doing so many reviews now. I've noticed, however, that there...
✔   Change author on WordPress blog post?
I have two accounts set up for my WordPress blog and I'd like to be able to have all my posts from a...
✔   How do I restructure my Wordpress blog without losing SEO?
I have a wordpress blog that was using categories in the url structure like this: /category_name/post_name/ Then I had read somewhere that if...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  





Categorized: Blogs and Blogging   (Article 4176, Written by )
Tagged:
Previous: How can I speed up my Windows XP PC?
Next: How do I use mailto: links in a form?




Reader Comments To Date: 12

Blog Party said, on September 9, 2005 12:16 AM:

Great info! Thank you Sarah and Dave :)

Ahmad Gharbeia said, on February 24, 2006 6:53 PM:

"To make the title of the articles clickable through to the permanent URL…"
This is not true.
<$BlogItemURL$> doesn't resolve to the post's permalink, it resolves to an external link specified by the user when creating the post, presumably as the subject of the blog post.

http://help.blogger.com/bin/answer.py?answer=734

Dave Taylor said, on February 24, 2006 11:36 PM:

Ahmed, you're right! I have fixed the spot where Sarah referenced the wrong Blogger template tag. Thanks.

vraths said, on September 23, 2006 1:24 AM:

Thanks for the information.....
But I have one problem with "TITLE TAG"
Its... for home page the TITLE TAG will be that we give, and follows throught the blog with same TITLE TAG for our POSTS also...

But my question is can we get the TITLE as we make new POSTs for blog.. and it should become my TITLE TAG and appear for each page we click for different posts should show related TITLE TAG...

Can any one explain how it can be achieved

MattPage said, on February 26, 2007 8:52 AM:

Thanks - Been wanting to do this for ages.

Matt

Matt said, on May 16, 2007 3:55 PM:

Thanks! This was just was I was looking for! Works great!

irwan said, on October 23, 2007 10:32 AM:

thanks for the INFO. Your script work perfectly (in CLASSIC mode). But, i have a problem. I use a modern template (XML). Could u help me?? Can you convert those HTML script into XML??.
Thank.

I'm waiting your reply (mail me)

Steve said, on December 2, 2007 12:38 AM:

Hi, your links to "Essential change to Blogger templates" dont work.

Thanks for this permalink info

Dav7 said, on February 13, 2008 5:13 PM:

I can´t find:

blogitemtitle>

on my blog!!

just:













:(

how can I ad permlinks ?

rohit srivasatva said, on July 28, 2008 9:31 PM:

hi dave i was getting a blue screen message earlier and i used a different anti virus(quick heal) nd using native boot scan... i guess the worm has been deleted but there are still some problems...like iam not able to open my cd drive after inserting the cd it says insert disk in drive whereas normally even if theres no disk it shd open..then while starting the computer today i encountered a problem and the screen said there is no input nd asked me to change the settings to 1280*60 ..and then again when i restarted the computer i got a message that system 32 file is either corrupt or missing so i inserted the OS cd nd repaired it and iam not sure whether it really got repaired or not !! but after that system has been performing fine so whats your take dave...??one more thing plz suggest me any other thing apart from system reformat cause ive got a huge music collection of ovr 30 gb and i dont have the backup nd its really a big problem though as my cd drive isnt performing..till yesterday it was fine but now all of a sudden it stopped operating. plz Dave help me...

Jadu Saikia said, on January 7, 2009 3:55 AM:

Thanks Dave, useful info, I need to try.

Roschelle said, on September 12, 2009 9:36 AM:

Thanks for posting this information. It looks just a bit tricky but after I save my original template I'm going to give it a try

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.