
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? 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>
<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>
<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.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.
Categorized:
Blogs and RSS Feeds
(Article 4176)
Tagged: Previous: How can I speed up my Windows XP PC? Next: How do I use mailto: links in a form? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. Great info! Thank you Sarah and Dave :) Posted by: Blog Party at September 9, 2005 12:16 AM"To make the title of the articles clickable through to the permanent URL…" http://help.blogger.com/bin/answer.py?answer=734 Posted by: Ahmad Gharbeia at February 24, 2006 6:53 PMAhmed, you're right! I have fixed the spot where Sarah referenced the wrong Blogger template tag. Thanks. Posted by: Dave Taylor at February 24, 2006 11:36 PMThanks for the information..... 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 Posted by: vraths at September 23, 2006 1:24 AMThanks! This was just was I was looking for! Works great! Posted by: Matt at May 16, 2007 3:55 PMthanks 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??. I'm waiting your reply (mail me) Posted by: irwan at October 23, 2007 10:32 AMHi, your links to "Essential change to Blogger templates" dont work. Thanks for this permalink info Posted by: Steve at December 2, 2007 12:38 AMI can´t find: blogitemtitle> on my blog!! just:
how can I ad permlinks ? Posted by: Dav7 at February 13, 2008 5:13 PMI have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|