Showing posts with label Navigation. Show all posts
Showing posts with label Navigation. Show all posts

Monday, 16 July 2012

Place Your Ads Below Post Title

Best Placement Of Ad
Many people wish to make more money than they earn. In fact every body does. But everybody don't. It depends upon the number of blog visitors (impressions) and clicks. It also matters on the position of the ads. Eg: Putting the adsense ad below the post is likely to get less clicks then that of ads lying above the post. So to get high CTR to day I am going to teach you how to place an add below the post title of your blog.


It's not hard at all. Just you need to create a new add and add it. So are you ready. Let's proceed then;
According to many advertising network placing ads below post title is an excellent trick to earn more clicks. It is illustrated by the heat map at left.
Here we go;


1. Creating An Add

  • For placing add you need to create an add first.
  • Create an add. It's usually better to create a new one so that you can track it properly.
  • For best result create an add of size 300x250 (medium rectangle) or 336x250 (large rectangle).
  • After creating the add get the code of it.
  • Copy the add code.
  • Encode the code of that add by using this tool to escape special characters. If you directly implemented then blogger won't accept it.
  • Copy that escaped code.
2. ADDING THE ADD CODE
  • After you have encoded your ad code it's ready to be implemented.
  • Be forwarded to your dashboard.
  • Go to design>Edit Html.
  • Tick the expand widget templates check box.
  • Look for the following code in your template;
<data:post.body/>
  • After you have found the above code then paste your escaped ad code above (before) it.
By doing this ad will appear on blogger posts and pages. If you want to make it appear on posts only then;
  • Paste your code like the way below;
<b:if cond='data:blog.pageType == &quot;item&quot;'>
ESCAPED CODE GOES HERE
</b:if>
  • The conditional tag (line 1 &3) will make your ads visible on posts only.
Hope this will work for you.
CHEERS!!

Wednesday, 4 July 2012

Adding Read More Link To Blogger With Thumbnail

Hey guys after a long time of editing my blog template i am back. Today when i was surfing through internet i found a nice tool for blogger and that was auto read more link. Simply we can recognize it as a tool that shortens your post. But with this post you will be able to add read more link with thumbnail.
The first picture of each post will be taken as thumbnail. Here is a  model of it;
Here thumbnail is kept at left side. The size of picture is converted first and then displayed.
By the help of auto read more link you will be able to make your site load faster. Due to this the whole post shouldn't be shown and a partial part of post is shown which makes the time of displaying less.
At the end of each partial post there would be a phrase "read more" or "see more". We can keep any words as our wish. By clicking on it users will be able to jump to the specific (targeted) post. 
This widget uses Javascript. You may think your post will be affected but it is not so. It doesn't have a glimpse in a single post of yours. It is seen in posts without thumbnail also. When there is no image then instead of image partial part of post covers it. So there is no exception. So isn't it a terrific tool. If you are impressed with it then read the tutorial below and if not then for the sake of test i recommend you to use this tool at least once as it helps in the development of your SEO also.
ADDING AUTO READ MORE LINK:
Without delay let's go;
  • Sign in to your blogger account.
  • Be forwarded to dashboard>design>edit html.
  • Be sure to tick the Expand Widget Template box.
  • After you ticked the box search for this tag;
</head>
  • After you found the tag paste the below code just after it;

<!-- Auto read more script Start -->
<script type='text/javascript'>
var thumbnail_mode = "yes"; //yes -with thumbnail, no -no thumbnail
summary_noimg = 430; //summary length when no image
summary_img = 340; //summary length when with image
img_thumb_height = 200;
img_thumb_width = 200;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}

function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(thumbnail_mode == "yes") {
if(img.length>=1) {
imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
summ = summary_img;
}
}
var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary;
}
//]]>
</script>
<!-- Auto read more script End -->
  • After adding the above code search for this one;
<data:post.body/>
  • After you found this code replace with the code below;
<!-- Auto read more Start -->
<!-- http://www.BloggingSentral.blogspot.com -->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
<data:post.body/>
<b:else/>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
<script type='text/javascript'> createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);
</script>
<a class='more' expr:href='data:post.url'>Read more ...</a>
</b:if>
</b:if>
<!-- Auto read more End -->

Note: You may find <data:post.body/> two or three. At the time try the first one. I have found this tip working 95%.
  • Preview it and if you are satisfied then click on save template.
Tips:
  1. You can change the phrase Read More.. bolded and italicized above to any word or phrase you want.
  2. You can change img_thumb_height  value and img_thumb_width  value. Be sure to change the height or width in pixels.
  • ENJOY!!
If you have any problems feel free to comment below.

Friday, 22 June 2012

Numbered Page Navigation For Blogger

Navigation we already know, is the way or medium via which we can navigate through a site. Numbered Page Navigation as mentioned above facilate users with easy navigation. Many of you might have page navigation like the one below;








This is also a way to navigate your blog but look at it once carefully. It looks so dull and also not nice. Some kind of thing is missing here. If it was like this then it would be OK ya;












Which of the navigation do you like much. Definitely the lower one. It is good to see also and contains numbers too. So better to keep numbered navigation system in your blog. If you don't know how and want to add it then refer below.
Follow the steps below;
  • Sign in to your blogger account.
  • Go to design.
  • Be forwarded to Edit Html. ( Be sure not to tick expand widget template)
  • Now find this;
]]></b:skin>
  • After you found it add the below code just before (above) it;
/* Page Navigation styles */
.showpageNum a {
  padding: 3px 8px;
  margin:0 4px;
  text-decoration: none;
  border:1px solid #999;
  -webkit-border-radius:3px;-moz-border-radius:3px;
  background: #ddd;
  }

.showpageOf {
margin:0 8px 0 0;
}
.showpageNum a:hover {
  border:1px solid #888;
  background: #ccc;
  }

.showpagePoint {
  color:#fff;
  text-shadow:0 1px 2px #333;
  padding: 3px 8px;
  margin: 2px;
  font-weight: 700;
  -webkit-border-radius:3px;-moz-border-radius:3px;
  border:1px solid #999;
  background: #666;
  text-decoration: none;
  }
  • Now find;
</body>
  • Add the below code just before (above) it;
<!--Page Navigation Starts-->
<script type='text/javascript'>
var home_page=&quot;/&quot;;
var urlactivepage=location.href;
var postperpage=4;
var numshowpage=6;
var upPageWord =&#39;Previous&#39;;
var downPageWord =&#39;Next&#39;;
</script>
<script src='https://page-navigation-blogger-new.googlecode.com/files/pagenavigation.js' type='text/javascript'/>
<!--Page Navigation Ends -->
Here are some changes that you can make in this code to adjust to your choice;
varpostperpage=4;
  • It is the parameter to show number of posts that would be displayed per page.
varnumshowpage=6;
  • This parameter shows the additional numbers in navigation bar like in the second picture of this post.
var upPageWord =&#39;Previous&#39;;
downPageWord =&#39;Next&#39;;
  • This two lines of code are for the text Previous and Next. You can change it so that the text you write will appear instead of   Previous and Next in the numbered navigation bar.
Now your blog will be having this wonderful widget. Comment below if you have any problem. Hope you enjoy this post and be sure to subscribe with us below.
THANKS!!

Friday, 15 June 2012

Scroll To Bottom Button For Blog

Many people have heard about back to top buttons. Many have implemented it in their websites also. In this blog also written about this. You can check it out by clicking here Smooth Scroll To Top Button For Blog. But rarely people know about back to bottom.


Today  while i was editing my blog i saw one comment representing this same thing. So this post is after one of my loyal visitor TJYK BLOGSHOP.
Adding this website to your blog is not so hard just you have to add some codes and that all. So lets begin:
  • Go to blogger.com and sign in.
  • Click on design>page elements.
  • And then click on add a gadget and select Html/Javascript.
  • Then add the below code their;
  • <a rel="nofollow" style="display:scroll;position:fixed;bottom:10px;right:5px;" href="#footer" title="Back to Top"><img src="ADD URL OF BACK TO BOTTOM BUTTON HERE"/></a>
  • Now replace "ADD URL OF BACK TO BOTTOM BUTTON HERE" with the direct link of your image.
  • For best results use small pictures like icons.
  • Now you are done. View your blog and enjoy your new widget.
If you are having problems related to this then feel free to comment below and don't forget to subscribe with us below.
Thank@You!! 

Thursday, 26 April 2012

A Beautiful jQuery Drop-Down Menu For Blogger Blogspot

Steps Adding the jQuery Drop-Down menu

Step 1. If you are using the old Blogger interface:
  • Go to Dashboard - Design - Edit HTML - Expand Widget Template (make a backup)

If you are using the new Blogger interface:
  • Go to Dashboard - Template - Edit HTML - Proceed - Expand Widget Template (make a backup)

Step 2. Search for the following code:

]]></b:skin>

And before/above it, add the following CSS code:

#jsddm {
margin: 0;
padding: 15px;
z-index:1000000000;
position:relative;
}
#jsddm li {
float: left;
list-style: none;
font: 12px Tahoma, Arial;
}
#jsddm li a {
display: block;
white-space: nowrap;
margin:1px 3px;
border: 1px solid #AAAAAA;
background: #cccccc;
background: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#cccccc));
background: -moz-linear-gradient(top, #ebebeb, #cccccc);
padding: 5px 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
text-shadow: #ffffff 0 1px 0;
color: #363636;
font-size: 15px;
font-family: Helvetica, Arial, Sans-Serif;
text-decoration: none;
vertical-align: middle;
}
#jsddm li a:hover {
background: #C8C8C8;
}
#jsddm li ul {
margin: 0;
padding: 0;
position: absolute;
visibility: hidden;
border-top: 1px solid white;
}
#jsddm li ul li {
float: none;
display: inline;
}
#jsddm li ul li a {
width: auto;
background: #CAE8FA;
}
#jsddm li ul li a:hover {
background: #A3CEE5;
}

Step 3. Now find this piece of code:

</head>

And add this code immediately before/ABOVE it:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js' type='text/javascript'/>
  <script type='text/javascript'>
  //<![CDATA[
var timeout    = 500;
  var closetimer = 0;
  var ddmenuitem = 0;
function jsddm_open()
  {  jsddm_canceltimer();
  jsddm_close();
  ddmenuitem = $(this).find('ul').css('visibility', 'visible');}
function jsddm_close()
  {  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}
function jsddm_timer()
  {  closetimer = window.setTimeout(jsddm_close, timeout);}
function jsddm_canceltimer()
  {  if(closetimer)
  {  window.clearTimeout(closetimer);
  closetimer = null;}}
$(document).ready(function()
  {  $('#jsddm > li').bind('mouseover', jsddm_open)
  $('#jsddm > li').bind('mouseout',  jsddm_timer)});
document.onclick = jsddm_close;
  //]]>
  </script>

Step 4. Click on Save Template button.

Step 5. Now go to Design (or Add a layout) > Page Elements > click on "Add a gadget" link and choose HTML/JavaScript, then paste the following code in the empty box:

<ul id="jsddm">
  <li><a href="#">Home</a>
  <li><a href="#">Link 1</a>
  <ul>
  <li><a href="#">Drop 1-1</a></li>
  <li><a href="#">Drop 1-2</a></li>
  <li><a href="#">Drop 1-3</a></li>
  </ul>
  </li>
 <li><a href="#">Link 2</a>
  <ul>
  <li><a href="#">Drop 2-1</a></li>
  <li><a href="#">Drop 2-2</a></li>
  </ul>
  </li>
 <li><a href="#">Link 3</a>
  <ul>
  <li><a href="#">Drop 3-1</a></li>
  <li><a href="#">Drop 3-2</a></li>
  <li><a href="#">Drop 3-3</a></li>
  <li><a href="#">Drop 3-4</a></li>
  </ul>
  </li>
 <li><a href="#">Link 4</a></li>
  <li><a href="#">Link 5</a></li>
  <li><a href="#">Link 6</a></li>
  </li></ul>

Note :
You must change links titles and replace the # symbol with the URL address of each of your links
Then click on Save

Important:

- if your menu is on the sidebar, or footer, just drag it to your page header and click and click Save again.
- if drop down links are not showing, do the following:

Go back to Design > Edit HTML  and search (CTRL + F) for this code:

<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>

You should change 1 with 3 and no with yes like this:

<b:section class='header' id='header' maxwidgets='3' showaddelement='yes'>

Save the Template.
Now go to Page Elements and drag your menu immediately below your header.

Here you can see the DEMO.

Wednesday, 11 April 2012

How to Replace Older Posts and Newer Posts Links with Blogger Post Titles

If you have ever visited a WordPress blog, you might have noticed that the blog pager on these blogs displays the actual post titles, not just links to the older and newer posts that you find at the bottom of your Blogger blog. This links are parts of the so-called blog pager which helps readers navigate between pages and posts.

If you want to increase your page impressions, one of the ways is to replace the older/newer posts links with the Blogger post titles.

How To Add Post Titles Instead of Older Post/Newer Post Links On Your Blog

1. Log in to Blogger, go to Design > Page Elements
2. Click on "Add A Gadget" link
3. Choose "HTML/JavaScript" and paste this code into the empty field of the HTML/JavaScript gadget:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
var olderLink = $("a.blog-pager-older-link").attr("href");
$("a.blog-pager-older-link").load(olderLink+" h3:first", function() {
var olderLinkTitle = $("a.blog-pager-older-link:first").text();
$("a.blog-pager-older-link").text(olderLinkTitle);
});
var newerLink = $("a.blog-pager-newer-link").attr("href");
$("a.blog-pager-newer-link").load(newerLink+" h3:first", function() {
var newerLinkTitle = $("a.blog-pager-newer-link:first").text();
$("a.blog-pager-newer-link").text(newerLinkTitle);
});
</script>

Note: The line in red is for acquiring jQuery framework. If you have acquired jQuery in your template, then you can just delete this part.

4. Now Save the Widget and drag it under the Blog Posts section.


View your blog and see if the older/newer posts links have been replaced with your post titles.
For any questions, leave a comment below. Cheers!

Friday, 6 April 2012

Replace Older, Newer And Home Blogger links with an image or text

Newer Post, Home and Older Post are links that appear on the bottom of the posts. When a visitor click on one of these links, they will take him to the page with the list of your previous posts.
The number of the posts on these pages will be the same as the number of the posts on your main page.


What we can do:

A. Change the text of Newer, Older, Home links
B. Place a picture beside them (a small icon, arrow, or whatever...)
C. Add an image instead of the links

So let's start customizing them...

1. Log in to your Blogger Dashboard, go to Design > Edit HTML > make a backup of your template
2. Check the "Expand Widget Templates" box
3. Find (CTRL + F) the following code:

    <b:if cond='data:newerPageUrl'>
      <span id='blog-pager-newer-link'>
      <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>
      </span>
    </b:if>

    <b:if cond='data:olderPageUrl'>
      <span id='blog-pager-older-link'>
      <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
      </span>
    </b:if>

    <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>

Find in this code the following fragments which corresponds to each page links
  1. <data:newerPageTitle/> represents Newer Posts link
  2. <data:olderPageTitle/> represents Older Posts link
  3. <data:homeMsg/> represents Home link
Now change these fragments of codes as it follows:

A. Change the text of the links

You need to REPLACE following parts in original code with ANY TEXT you like:
  • replace <data:newerPageTitle/> with, for example NEXT POST 
  • replace <data:olderPageTitle/> with, for example PREVIOUS POST
  • replace <data:homeMsg/> (only the first one) with, for example HOMEPAGE

    B. Place a picture beside Newer Posts, Older Posts and Home links

    Add the below code just at the beginning of each of the colored fragments of codes from step 3.

    <img src="URL Address"/>

    So it should look like this

    <img src="URL Address"/><data:newerPageTitle/>

    Note: Replace URL Address text with the url address of the image you want to appear

    C. Replace Older Posts, Newer Posts and Home links with an image/picture

    You can place any kind of picture you want All you have to do is use this code for the pic:

    <img src="URL ADDRESS"/>


    ...just replace URL ADDRESS, with the URL of your hosted picture
    ...and in code, REPLACE the original link code for text with picture code
    • replace <data:newerPageTitle/> with the pic for newer (next) posts
    • replace <data:olderPageTitle/> with the pic for older (previous) posts
    • replace <data:homeMsg/> (only the first one) with the pic for homepage

    4. That's it! Preview and Save the Template.