Thursday, April 19, 2012

Replacing Older And Newer Links With Posts Titles

Let's try to replacing older and newer posts links with post title.
Here we go !!!
First, Login to Blogger, go to Dashboard › Design › Edit HTML › Backup template.
Put below script before </head> script:
<script type="text/javascript" src=""></script>

Save template and go to Page Elements click for Add A Gadget pick HTML/JavaScript and put below script in it.
<style type="text/css">
#blog-pager-newer-link {font-size:85%;width:200px;text-align:left;}
#blog-pager-older-link {font-size:85%;width:200px;text-align:right;}
<script type="text/javascript">
var newerLink = $("").attr("href");
$("").load(newerLink+" .post-title:first", function() {
var newerLinkTitle = $("").text();
$("").text("<< " + newerLinkTitle);
var olderLink = $("").attr("href"); </ br>$("").load(olderLink+" .post-title:first", function() {
var olderLinkTitle = $("").text();
$("").text(olderLinkTitle + " >>");//rgt

Save it and look for the result by visiting homepage or one of your post.
Good luck.

Source: Change newer posts link and older posts link text, make them become real dynamic post titles - my Blogger template tweak

No comments:

Post a Comment