Skip to main content

Add Post title to Older or Newer Post like In WordPress

Add Post title to Older or Newer Post like In WordPress


How to modify blogger page navigation
Instructions to adjust blogger page navigationWordPress, the most suggested CMS stage prescribed by the greater part of the individuals. It fills in as an incredible CMS stage which offers huge expert looking online journal topics and different various kinds of performing various tasks modules, that give a smooth path to your blogging. Search engine optimization instruments offered by WordPress are sublime that give effortlessness to apply SEO systems and spare parcel of time. 

We are continually searching for some helpful WordPress modules and changes their similarity with the goal that Blogger clients can likewise appreciate the highlights that is the reason we as of late propelled. 

Email bulletin information exchange enclose WordPress style for Blogger blog. 

Today we are sharing a JavaScript code that empowers your blog to show the title of straightaway and past post instead of Older post and Newer post at base piece of your blog. 

This stunts give an effectiveness to perusers during surfing in light of the fact that before setting off to the following post they will definitely realize what sort of post is straightaway? 

Sound fascinating! On the off chance that vibe this stunts is incredible, follow the accompanying advances and make your present page route to progressively adaptable simply like in WordPress. 

Demo 

Step by step instructions to Add Post Tile In Older and Newer Post 

Most importantly take reinforcement of your blog layout before rolling out any improvement in it and spare it in your neighborhood PC at that point continue further. 

Go to Blogger/Template/Edit HTML and quest for </head> area in format, at that point glue following jQuery library code simply above </head>. You can avoid this alternative if your blog layout as of now have jQuery library module introduced. 

<script src='http://code.jquery.com/jquery-latest.js' type='text/javascript'/> 

Presently find </body> and glue following code simply above it. 

<!- - Start code on http://www.allbloggingtricks.com - > 

<b:if cond='data:blog.pageType == &quot;item&quot;'> 

<script type='text/javascript'> 

/<![CDATA[ 


/Configuration: 

var olderLink = 'More seasoned Post &gt;&gt;<div class="blog-pager-more seasoned connection title">[title]</div>'; 

var newerLink = '&lt;&lt; Newer Post<div class="blog-pager-more up to date interface title">[title]</div>'; 

var olderTitle = 'More seasoned Post - posted on [date]'; 

var newerTitle = 'More up to date Post - posted on [date]'; 


work setLink(selector, interface, title, passage) { 

var htm = link.replace("[title]", entry.title.$t); 

$(selector).html(htm); 

var date = entry.published.$t.match(/\d+/g); 

date = new Date(date[0],date[1]-1,date[2],date[3],date[4],date[5]);/convert iso 

title = title.replace('[date]', date.toLocaleDateString()); 

title = title.replace('[datetime]', date.toLocaleString()); 

title = title.replace("[title]", entry.title.$t); 

$(selector).attr("title", title); 


work setOlderLink(entry) { setLink("a.blog-pager-more seasoned connection", olderLink, olderTitle, passage); } 

work setNewerLink(entry) { setLink("a.blog-pager-fresher connection", newerLink, newerTitle, passage); } 

$(window).load(function() { 

window.setTimeout(function() { 

var timestamp = $(".published").attr("title"); 

if(timestamp && timestamp != "") 

$.getJSON("/takes care of/posts/default?alt=json-in-script&published-min="+encodeURIComponent(timestamp)+"&max-results=0&callback=?", function(resp) { 

var postindex = parseInt(resp.feed.openSearch$totalResults.$t); 

if(postindex > 1) 

$.getJSON("/takes care of/posts/summary?alt=json-in-script&start-index="+(postindex-1)+"&max-results=3&callback=?", function(resp) { 

setNewerLink(resp.feed.entry[0]); 

var postcount = parseInt(resp.feed.openSearch$totalResults.$t); 

var startindex = parseInt(resp.feed.openSearch$startIndex.$t); 

if(postcount - startindex > 1) setOlderLink(resp.feed.entry[2]); 

}); 

else 

$.getJSON("/takes care of/posts/summary?alt=json-in-script&start-index=2&max-results=1&callback=?", function(resp) { setOlderLink(resp.feed.entry[0]); }); 

}); 

}, 500); 

}); 

/]]> 

</script> 

</b:if> 

<!- - End code on http://www.allbloggingtricks.com - > 

Congratulations you have effectively set the JavaScript code now its chance to add some CSS rule to improve its appearance. 

Find ]]></b:skin> in layout and glue following CSS code simply above it. 

.blog-pager-more up to date interface 

{background-color:transparent ; 

cushioning: 0 } 

.blog-pager-more established connection 

{background-color:transparent ; 

cushioning: 0 ;} 

#blog-pager-more up to date interface 

{padding:5px; 

text style size:90%; 

width:200px; 

content align:left;} 

#blog-pager-more seasoned connection 

{padding:5px; 

text style size:90%; 

width:200px; 

content align:right;} 

At long last spare your blog layout and on the off chance that all means performed effectively, at that point see the progressions that you made up. 

Credit 

Would you like to realize who is the man behind this brilliant gadget? Ofcourse not! this JavaScript code is given by MS-potilas, the creator and administrator of Yet Another Blogger Tips Blog. 

On the off chance that you have any issue about its arrangement or some other subject, at that point don't hesitate to ask in remarks.

Comments

Popular posts from this blog

How To Enable Or Disable Comments In Blogger Blogs

How To Enable Or Disable Comments In Blogger Blogs Commenting option on a blog provide a way to interact readers and author to other people to share their experience. It briefly describe the popularity of a blog,  if a particular blog daily receives more  comment  than other blogs then obviously it is more popular then other blogs that are receiving less comment. Blogger team working hard to improve the appearance of overall comments that's why it previously launched threaded comments, which looks great and had received positive feedback from the readers. If you want to modify threaded we have separate article for this. How to modify threaded comments .  Basically there are two type of pages in Blogger where you have need to enable/disable comments that is post page (index page) or  static page .So lets play with comment option on these pages. How To Hide Comment From Every Page Blogger provide an easy way to disable comment box from every page...

How To Make Your Blogger Blog To Dofollow With CommentLuv

How To Make Your Blogger Blog To Dofollow With CommentLuv Dofollow commenting system is a powerful technique to increase number of daily comments on a blog. Number of comments on a blog tells the popularity of that blog if your blog is new and have less traffic then making your comment system to  dofollow  would give you instant traffic on your blog. Comment luv  is a popular plugin that WordPress blogs often used to make their comment system to dofollow. Previously, it is very easy to make blogger blog to dofollow but when blogger launched threaded commenting system, which uses strong JavaScript, it become quite difficult. But here we are sharing a tutorial through which you can easily make your blogger blog to dofollow. You can see demo from  here . How to make Blogger Blog DoFollow Go to  intensedebate.com  and create an account in it. Login to you account and click  Extras  from top menu and then choose  install IntenseDe...

How To Solve HTML Improvement Error In Google Webmaster

How To Solve HTML Improvement Error In Google Webmaster Webmaster, a very useful service offered by Google team to analyse or check the performance of the web site or blog by their owners. Bloggers generally use this service to know about their blog reputation in the eyes of the search engine that's why it is very important to learn the basic function of webmaster. You can increase your blog listing in search engines by optimizing your blog performance, HTML improvement option is one of them which checks the duplicate content on a blog. Here we will learn to optimize blog with webmaster using HTML improvement function. How To Find Error In HTML Improvement Option If you are a newbie and don't know this option yet then you have to understand which type of error it shows. It discovered the duplicate meta description tag, title tag or short description tag on your blog, your blog can't participate in Google  Adsense  until you solve all issues discovered by this. Fo...