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.
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!
I do have a comment, now that you mention it!
Check This Out Too...
Look for Answers
All Our Categories
Apple iPad Help
Articles and Reviews
Auctions and Online Shopping
Blogs and Blogging
Building Web Site Traffic
Business and Management
Computer and Internet Basics
d) None of the Above
Google Gmail Help
Google Plus Help
Industry News and Trade Shows
iPhone and Cell Phone Help
iPod, Sony PSP and MP3 Player Help
Kindle Fire Help
Mac OS X Help
Pay Per Click (PPC) Advertising
Search Engine Optimization (SEO)
Shell Script Programming
Tech Support Video Help
The Writing Business
Twitter, LinkedIn and Social Network Help
Unix and Linux Help
Video Game Tips and Help
Windows PC Help
Find Me on Google+
ADT on G+