Fading Box Amongst Newer/Older Posts Links As Well As Titles For Blogger

The navigation links are those that look at the bottom of the page that says "Older Posts", "Newer Posts" in addition to "Home" in addition to attention us to movement through the weblog posts. This tutorial volition exhibit yous how to alter the give-and-take "Older Posts" in addition to "Newer Posts" for post service titles in addition to brand these to look inwards a box "fading" when yous scroll downward the page.
The navigation links are those that look at the bottom of the page that says  Fading Box With Newer/Older Posts Links in addition to Titles for Blogger

You tin encounter it inwards activity on this demo blog - when yous scroll down, the navigation links volition look showing the post service titles for the older/newer entries.

This way to display the navigation links volition last seen entirely inwards private entries, land those on the homepage in addition to other parts of the weblog volition all the same last displayed equally usual.

How to Add Navigation Box amongst Newer & Older Posts on Blogger

Step 1. From your Blogger Dashboard, teach to Template > Edit HTML, click anywhere within the code expanse in addition to search - using CTRL + F - for this line:

<b:include name='nextprev'/>

Screenshot:

Step 2. REPLACE the code to a higher identify amongst this one:

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:include name='nextprev'/>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='blog-pager-box'>
<h4>Other posts published:</h4>
<b:include name='nextprev'/>
</div>
</b:if>

Note: yous tin alter the "Other posts published" championship amongst your ain

Step 3. Now add together only to a higher identify </head> the next code:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'/>
<script>
// <![CDATA[
$(function() {
$('#blog-pager-box').toggle()
.css({
width: '520px',
height: '150px',
position: 'fixed',
padding: '1em',
bottom: 0,
right: 0,
background: 'url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjon5PwtQzyTQHwvAZdz3CPAAq2gDru-2kE92NiqMg-sMeH4K4983MdDo8CSZL087GM1fOuzE-TKU_88vJMooLVzULr65Y7l2Nh_l6FTNIWaQY-UJpiKaGEb7b-q69ogxl9qo-h6cfKEYax/s1600/paper.jpg)'
});

$(window).scroll(function() {
if($(this).scrollTop() > 100) {
$('#blog-pager-box').fadeIn();
} else {
$('#blog-pager-box').fadeOut();
}
});
});
$(document).ready(function(){
var newerLink = $("a.blog-pager-newer-link").attr("href");
$("a.blog-pager-newer-link").load(newerLink+" .post-title:first", function() {
var newerLinkTitle = $("a.blog-pager-newer-link:first").text();
$(".blog-pager-newer-link").html("<div>Newer Posts:</div>" + newerLinkTitle);
});
var olderLink = $("a.blog-pager-older-link").attr("href");
$("a.blog-pager-older-link").load(olderLink+" .post-title:first", function() {
var olderLinkTitle = $("a.blog-pager-older-link").text();
$(".blog-pager-older-link").html("<div>Older Posts:</div>" + olderLinkTitle);
});
});
// ]]>
</script>

<style type='text/css'>
<!--
#blog-pager-box {
box-shadow: 0 0 3px #AEAEAE;
z-index:9;
}

#blog-pager-box h4 {
margin:0;
padding:0;
color:#4898B9; /* Widget's championship color */
font-size:16px; /* Title font size */
}

#blog-pager-newer-link {float:left;clear:both;line-height:30px;}
#blog-pager-older-link {float:left;clear:both;line-height:30px;}
.home-link {display:none;}
.blog-pager-older-link, .blog-pager-newer-link {
background-color: transparent !important;
background-image: none !important;
border:0 !important;
color: #4B4B4B !important; /* Color of the links */
float: left;
width: 500px;
clear:both;
}

a.blog-pager-older-link:hover, a.blog-pager-newer-link:hover {
text-decoration:none !important;
}
 
a.blog-pager-newer-link:before {
content: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVvdMpEP_9FsUuDJ_q_jGjx_SKkZi-0ds4Anl9yyNcn59MAo4ElkzxLS_yRHMwIeAVZsP7jcUtSw0GXnZtwKyv9w69RG7VABtRCf-4yyBRfdC2WNwvirQN4PujaDJ-c4zoKMnvV0g7xuQ/s1600/back.png);
float:left;
}
a.blog-pager-older-link:before {
content: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH__Kpk1KQI4KIvK1DlL6PKFcBPkGZSmTjO_Lz-yr7GFLZ9u_lISsJpfKb1fligF3jqHPVDUPBbMhyphenhyphenpbAtN7wi6sfwelAAypIkxAsJlgcRfYt6R5Bf7CnsNtP1gxfw5e9qYsDo_1QdgrM/s1600/forward.png);
float:left;
}
#blog-pager {
width:500px;
background-color: transparent !important;
background-image: none !important;
border:0 !important;
text-align:left;
}
 
#blog-pager div {
color:#0577AB; /* Color for the "Newer Posts" in addition to "Older Posts" text */
font-weight:bold;
margin-bottom: -5px;
}
a#blog-pager div:hover {
text-decoration:none !important;
color:#4898B9; /* Color for the "Newer Posts" in addition to "Older Posts" text */
}
-->
</style>
</b:if>

Note that this gadget uses jQuery, in addition to then receive to convey entirely ane version.


Customization:


- There are iii URLs inwards blue, the get-go is the newspaper background picture for the box, the other ii are the icons that tally to the arrows. You tin supplant these amongst your own.
- In light-green yous tin encounter where to alter the text colors.
- The cerise issue is the distance inwards pixels that activates the gadget, this agency that the box volition look when yous scroll downward the 100px. You tin exercise a higher value if your posts are unremarkably long in addition to thence the "height" of the scroll is greater.
Step 4. Now, Save the Template in addition to that's it!

You tin likewise alter the "Older Posts" in addition to "Newer Posts" links amongst posts titles or images.

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel