Showing posts with label tricks. Show all posts
Showing posts with label tricks. Show all posts

Fading Box With Newer/Older Posts Links and Titles for Blogger

on Wednesday 28 August 2013

The navigation links are those that appear at the bottom of the page that says "Older Posts", "Newer Posts" and "Home" and help us to move through the blog posts. This tutorial will show you how to change the word "Older Posts" and "Newer Posts" for post titles and make these to appear in a box "fading" when you scroll down the page.

blogger gadgets, navigation for blogger

You can see it in action on this demo blog - when you scroll down, the navigation links will appear showing the post titles for the older/newer entries.

This way to display the navigation links will be seen only in individual entries, while those on the homepage and other parts of the blog will still be displayed as usual.

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

Step 1. From your Blogger Dashboard, go to Template > Edit HTML, click anywhere inside the code area and search - using CTRL + F - for this line:

<b:include name='nextprev'/>

Screenshot:

Step 2. REPLACE the code above with 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: you can change the "Other posts published" title with your own

Step 3. Now add just above </head> the following 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/AVvXsEhCmhfOSIpZ_3uASMOvITi6nuT6AJ_8uV9mR5Z8L6t6JfqKw_k9XItRRLUtcYctoCPmn1ziB2L6tKS0iWBewXxp2Ry_NO6CeqX090W3hZaLrc4pAEjDIEO0U10zuTDrh8hyLxtCb9q3gVJI/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 title 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/AVvXsEhpFQZcRm_Tv9RM2RT_3K5P5O8uLSPWWw79koMcgNbwr7idgrU7K2b_WKH5iktuTpafnwABSH4xQBBgGY8DaTYAyZaG8AvexexPDRScR_9FUknLjurRmYvBTtxPFV9GgxWqjPwz_xpj4jc/s1600/back.png);
float:left;
}
a.blog-pager-older-link:before {
content: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvNwB5A_Hgod329iVdfkp1MJRyAFRFq4jf5BHeQStpaQ0YfyA5ugIFmPgG0sqkLREPRDQRQ2UfaX0BZkVKKS_-IrNSkIxZ0Tj4bca1BRt0_8Mz6UhlIi9PF9RDt-CyxkhvI6GNtAY5cNg/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" and "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" and "Older Posts" text */
}
-->
</style>
</b:if>

Note that this gadget uses jQuery, so try to have only one version.


Customization:


- There are three URLs in blue, the first is the paper background image for the box, the other two are the icons that correspond to the arrows. You can replace these with your own.
- In green you can see where to change the text colors.
- The red number is the distance in pixels that activates the gadget, this means that the box will appear when you scroll down the 100px. You can use a higher value if your posts are usually long and therefore the "height" of the scroll is greater.

Step 4. Now, Save the Template and that's it!

You can also change the "Older Posts" and "Newer Posts" links with posts titles or images.
Tag : ,

SEO – Search Engine Optimization Tutorial / Tricks For Your Website

on Wednesday 24 July 2013

What is Search Engine Optimization (SEO)?

SEO stands for Search Engine Optimization. Search Engine Optimization is a technique to optimize the content of a website to improve its position in search result. Only Natural, Organic & Algorithmic way to increase the volume & quality of traffic is called as Search Engine Optimization. Actually, Search Engine Optimization will increase the ranking of website in search result which automatically increase the website traffic.

There are to type Search Engine Optimization techniques. One is White HAT SEO & another is Black HAT SEO.
White HAT SEO is the technique which are acceptable by every search engine and Black HAT is the technique that are not liked by search engines.
White HAT SEO also has two hands i.e. ON-page SEO & OFF-Page SEO. In this article we will discuss about White HAT, ON-Page SEO.

How to Become an Search Engine Optimization (SEO) Expert and Optimize Your Website?

On-page SEO technique means those optimization trick which we can do with editing the content. Off-Page tricks are those tricks which have no relation with the page (like link building & sharing).
See below tricks to optimize your website content and get better ranking in search result.

1.) Title, Meta Description & Meta Keywords for Search Engine Optimization

Everybody know that title, meta description & meta keywords are first thing to optimize the website content. Major search engine limit the Title to 65 characters (including Space & Special Characters). Meta Description & Keywords are limited to 160 characters & 10 comma separated words. Google had already cleared that they will not give any preference to Meta Keywords but other search engine do. So using meta keyword is beneficial since Google also not levied any penalty to use them also.
Use the Keyword in the beginning of the title is good for Search Engine Optimization. Use the shorter sentence in the Meta Description with no repetitive words.
2.) Permalink Structure for SEO  
Another important thing for SEO is the permalink structure of your page or post. For example you want to optimize your page for “search engine optimization” you can choose your permalink like www.example.com/search-engine-optimization/. This link is preferred by the search engine. If your are using WordPress, you can adopt custom permalink /%post_id%/%postname%. This is the best permalink structure for SEO.

3.) Keyword Density & Character Limit for Good SEO Optimized Page

Ideal keyword density of your keyword should be estimated around 1.5% to 4.5% maximum. You have to take care that keyword density should be between these limits. Also, it is recommended that a page should minimum have 300 words and maximum up to 1000. In any case if your page is exceeding 1000 words, split it in two page as a good SEO practice.

4.) Outbound Link & Use of Image for Search Engine Optimization

You always write a article and didn’t give any insert any outbound link in it. We suggest you to please insert at-least one do-follow outbound link from your page. Always try to give this outbound link from the your targeted keyword. This practice is liked by the search engine & they will give you high ranking.
Use at-least one image in your post and put your targeted keyword in “Alt” tag of image. This will give you additional point for ranking in SERP.

5.) Page Load Speed for Search Engine Optimization

Google has clear that they are considering page load speed also in ranking factor. Fast loading page will enhance the user experience. So don’t use flash and heavy scaled images on your page to speed up your page load time. You can check your page speed load time on Google Insights, GT Matrix & Pingdom.
This tools also provide you the suggestion to optimize the page size to speed-up your page load time.

Tag : , ,

UpLoad Your Picture

advertiser

Search This Blog

advertiser