Showing posts with label Blogspot. Show all posts
Showing posts with label Blogspot. Show all posts

Wednesday, 24 July 2013

How To Add “Read More” Posts Link in Blogger

With this trick, you can choose to display a select amount of text from the beginning of each post as a teaser instead of showing the entire post on the front page of your blog. Then when people want to read the rest of the post, they can click a “read more” link to see the full post. This is very handy if you have lots of long articles all on one page.
Step #1 - Update Your Template Code First you need to edit your existing code. Go to Layout >> Edit HTML. There you first click on "Expand Widget Templates" showing right above the HTML editor box. Now do a search (CTRL + F) within the HTML editor box for the following code <data:post.body/>. Now add the following code just above the <data:post.body/> tag.
<b:if cond='data:blog.pageType == "item"'> <style>.fullpost{display:inline;}</style> <p><data:post.body/></p> <b:else/> <style>.fullpost{display:none;}</style>

The result should look something like this:

Now let’s add one more bit of code which will actually create the “read more” link in your post. This code will go below the <data:post.body/>tag so copy the following and paste it in. Feel free to change the “Read more…” text to whatever you want the link to look like. Be careful not to delete any other code during this process.
<b:if cond='data:blog.pageType != "item"'><br /> <a expr:href='data:post.url'>Read more...</a> </b:if> </b:if>

Yes, there are supposed to be two </b:if> tags in the above code so don’t think it’ s a mistake. The result should look like this: new-code-block-2.png This code will be the same no matter what template you are using. Just make sure it goes below the <data:post.body/> as shown in the image above. Now let’s look at what the final result should be. Here’s the updated code block you just worked on all put together: new-code-block-3.png
Ok, now save it. If it get saved means you have done it well. So move to the next step: Step #2 - Add a Class Tag in Your Default Post Template For this step go to Settings >> Formattingand scroll all the way down to the bottom. It’s the last option called “Post Template”. You’re going to paste in the following code:
<span> </span>

You’ll want to keep the spaces in there which will make sense later. After you save this, it will look like this: post-template2.png
Step #3 - Create a New Post Ok, we’ve got everything all setup so it’s time to go and test it out. Hopefully you’ve got a new post in mind for your blog. If not, then we’ll just create a test post which you can later delete. When you click on the “Posting” tab, you’ll notice that the post text area is now pre-populated with the <span class=”fullpost”> and </span> tags. If not, then you didn’t save it properly so go back and re-read step #2.
So when writing your new post, anything you put above the <span class=”fullpost”> tag will be the teaser text. The main body of your post needs to go in between the <span class=”fullpost”> and </span> tags in order for the “read more…” link to work properly. See the screenshot below. Sometimes pictures illustrate better than words.
Now publish or preview your post to see the “read more” hack working on your blog. If it doesn’t show up for some reason, go back and run through the steps again. Most likely you pasted the code blocks in the wrong places. It’s difficult to troubleshoot these issues since each template can be unique so please make sure to double-check your template before asking for help in the comments section below.
Here’s the live post with the “read more…” link properly working based on the text I used above in the post text area.
post-results.png
Additional Info If you want to go back and update your old posts with this new “read more…” feature you can. Just go back and edit each post manually. Essentially you’ll need to paste in the <span class=”fullpost”> and </span> tags breaking apart the post into two parts.
For some posts, you might not want to use this feature at all. If that’s the case, just delete the <span class=”fullpost”> and </span> tags from within your new post text area. Then your new post will show up entirely just like it used to before you implemented this hack. Enjoy!

Thursday, 14 June 2012

Show Only Post Title In Blogger Label-Archive-Home Pages

How to Show Only Post Title In Blogger Label page,Archive Pages or even on home page of your blog.You sure would have seen many blogs using this trick to show only there post title in any page they want.Wordpress blogs easily do this using various plugins available but we bloggers also now can make it work in our blogs as its very simple tutorial to implement.

Here is an hack how to show post title in any desired page of an blog.

Please Read this tutorial very carefully as it is very easy but i am telling you two ways of doing which have different results.You can use one way at time or both ways at time but results will be different.I will try to make it very simple for you with what would be the result to the blog with each step, so read carefully.

1.Login to Blogger
2.Go To LAYOUT
3.Then Click On Edit HTML
4.Check Mark Expand Widgets
5.Press Ctrl+F

Now search For below code line in red :-

<b:include data='post' name='post'/>

And Replace it with Below Codes:-
<b:if cond='data:blog.homepageUrl
!= data:blog.url'><b:if cond='data:blog.pageType != "item"'>

<h3 class='post-title'><a expr:href='data:post.url'><data:post.title/></a></h3>

<b:else/>

<b:include data='post' name='post'/>

</b:if>

<b:else/>

<b:include data='post' name='post'/>

</b:if>


Now Preview Your template. If it accepts Your Html.Then Save It.

Now open your blog and click on the label or archive page of your blog it will show only post title . For demo check the category page of this Blog.

I hope you will be satisfied with it.This is one way.

Now there is another way of doing it but the results are different.

If you want to show only title of posts in your blog home page also,then only follow this way and implemet it.If you want only label page to show post title just get stoppd after reading first way only.

Now the second way to show only post title in blogger home page too.

1.Login to Blogger
2.Go To LAYOUT
3.Then Click On Edit HTML
4.Check Mark EXpand Widgets
5.Press Ctrl+F

Now search for this line in red :-

<p><data:post.body/></p>

After finding this line replace it with below codes :-
<b:if cond='data:blog.pageType == "item"'>
<p><data:post.body/></p>
</b:if>

This will show only post title on all pages of blogger including homepage label and archive pages.

One of my reader asked to show post title only in archive pages so i am placing code for him

Just use these codes to replace the above red line in place of above codes.
<b:if cond='data:blog.pageType == "index"'>
<p><data:post.body/></p>
</b:if>

And if you dont want to use post titles in archive pages use archive in place of index in above codes that's the only word making basic difference between the codes.

*Note-If you are using read more hack in your blogger you will get above red line twice.So replace only the line that appears first in your blog html code and leave second one as it is.

And then preview your template,if its ok. Save It.

The result would be like this in your blog.

Now i will explain difference in both hacks,so dont get confused.

1)Using only 1st way show post title in only label pages and archive pages.
2)Using only second way will show post title in your blog home page and label pages too but the result in label pages is not so beautiful as it shows Post footer links too like it shows in home page.
3)Install both ways in your blog together if you want to show post title in all of your blog pages and give it beautiful look, like have done it in my Earn Money Blog.

I hope now it have been clear how to use both, if still confused just implement 1st way and if you want post title in home page also implement 2nd way also. Thats' it.
If still any problem leave your comments.

Good Luck !!!!

How to Customize your Feedburner Email Subscription Form

Bloggers today I will teach you the codes by which any one can customize feedburner email subscription form according to his own needs.


  1. Your Original Code would be like this:


    <form style="border:1px solid #ccc;padding:3px;text-align:center;" action="http://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open(‘http://www.feedburner.com/fb/a/emailverifySubmit?feedId=Your feed ID here‘, ‘popupwindow’, ‘scrollbars=yes,width=550,height=520′;);return true"><p>Enter your email address:</p><p><input type="text" style="width:140px" name="email"/></p><input type="hidden" value="http://feeds.feedburner.com/~e?ffid=Your feed ID here" name="url"/><input type="hidden" value="your blog name" name="title"/><input type="hidden" name="loc" value="en_US"/><input type="submit" value="Subscribe" /><p>Delivered by <a href="http://www.feedburner.com" target="_blank">FeedBurner</a></p></form>









  1. Change Background Colour:


    To change the background colour, add:
    background: #00BB11

    just after,
    text-align:center;

    So the Code would be:
    <form style=”border:1px solid #ccc;padding:3px;text-align:center;background: #00BB11;“

    (For RGB Color Codes Chart, click here)








  1. Add a Background Image:


    To add a background image, add:
    background: url(your image url here);

    just after,
    text-align:center;

    So the Code would be:
    <form action="http://www.feedburner.com/fb/a/emailverify" style="border:1px solid #ccc;padding:3px;text-align:center;background: url(your image url here);"

    (Change the image URL to add your own)








  1. Change the Width of the Textbox:


    To change the width of the Textbox, you need to alter the code:
    width:140px

    (You can just increase or reduce the size according to your requirements)
    For example:
    <input type="text" style="width:250px" name="email"/>









  1. Add Default Text in the Textbox:


    You can add a default text in the textbox to make it more attractive to the visitors. Just use this simple technique:
    Remove the code:
    <p>Enter your email address:</p><p><input type="text" style="width:140px" name="email"/></p>

    and replace it with
    <input type="text" style="width:240px" name="email" value="Enter your email address" onfocus="if(this.value==this.defaultValue)this.value=";" onblur="if(this.value==")this.value=this.defaultValue;"/>



______________________________________________________________


  1. Changing the height of the textbox:


    To change the height of the textbox, add:
    height:22px;

    just after:
    style="width:255px;

    So the part of the Code would be:
    style="width:255px;height:22px;…..

    (You can change the height according to your requirements)








  1. Changing Font-Colour and Font-Size of the Text:


    You can also change the font-size and colour of the text that users enters in the textbox.
    Add:
    font-size:15px;color:#AA33FF

    just after:
    style="width:255px;

    Example:
    style="width:255px;height:22px;font-size:15px;color:#000000…

    (Change the size and colour to make it more attractive and matching with your template)








  1. Changing the Style of ‘Subscribe’ Button:


    To change the style of the button, you need to add a small piece of code to your template.

    • Go to Edit Template in the Blogger Layout

    • Search(Ctrl+F) for ]]></b:skin>

    • Add the following code just before ]]></b:skin>
      .button {
      background-color: #cc0000;
      font-size: 80%;
      font-family:Tahoma;
      font-weight: bold;
      color:#ffffff; }


    • Save the Template

    • Now make a slight alteration to your Feedburner Email Widget code:
      Replace:
      <input type="submit" value="Subscribe" />

      with,
      <input type="submit" value="Subscribe"/>

      (you can change the size,colour and face of the font)










  1. Removing Delivered by Feedburner Link:


    It’s very simple!
    Just remove the following part from your code:
    <p>Delivered by <a href="http://www.feedburner.com" target="_blank">FeedBurner</a></p>


How to do SEO in Blogger

What are search engine optimization tools, webmaster tools, Google page rank checker, SEO tools, and how can these internet tools help to bring more quality traffic to your Blog? There are many free online web tools that webmasters can use to find out more information about their sites. The tools can also alert the webmasters to possible problems search engines may have with the site's template codes and design. Here, we shall, for the benefit of our new bloggers, explain how these webmaster tools might help improve your website's PageRank.

Search Engine Optimization
We define Search Engine Optimization as – a method or process of improving and optimizing the ranking of a website in search engine results.

With millions of pages of search results for any given keyword, webmasters would want to have their website appear among the first couple of search result listings. The higher the position or ranking, the greater the likelihood that internet users will visit your site. This Search Engine Optimization (or SEO) concept is no different from a brick-and-mortar shop where location and visibility affect how many customers will pass by the shop and hopefully drop in for a visit. On the internet, your virtual site deserves a good location and visibility, and SEO consultants believe they know how to achieve that.

Blog Directory and Search Engine Listings
After having published a Blog or website, the first thing to do is to make sure that the information relating to the site is available on the internet. Web Directories, Blog Directories and Search Engines are the internet Yellow Pages. Although the major Search Engines will crawl your website even without any action on your part, it will be much faster if you could proactively provide them your site information. We had written articles on how and where to submit the blog information so as to have your site fully indexed and appear in many places on the internet.

Free SEO Tools
After you have submitted your website's data to all the search engines and directories, you should be able to find your site somewhere on the internet. If you do a keyword search on your website's topic, you may find many other listings in the search results ahead of yours. These are the sites which have better page ranks and are optimized for the search engines. You can optimize your blog or website too.

To attract business, many SEO sites have put up some of their SEO tools for free. Commercial sites which are serious in wanting to climb up the search ranking will pay the SEO consultants for more value-added services. If you are like us, blogging out of fun and passion, it might be better to use only the free services for a start.

Just open Google in a new window and enter words like - free SEO tools - into the search box and you can see what some of these sites offer.

Suggested SEO Tools
Many of the SEO webmaster sites have similar free tools and services. You can try any of them, though the one that we like is iWebTool. In fact, they have a link exchange program which you may want to check out. Among the SEO Tools, the ones we find useful in all these sites are:-
a. Backlink Checker – A list of sites that have linked to your blog or website. PageRank is largely determined by the number and quality of links to your site. Monitor this and you can probably guess what your PageRank ought to be.
b. Broken Link Checker – A look at which of the links in your site are pointing to incorrect or non-existent URLs. Having too many outdated and broken links on your web page may irritate not only the readers but the search spiders. Do this housekeeping once in a while to remove the bad links.
c. Google PageRank Checker – The Google PageRank of your site. You can also download Mozilla Firefox with Google Toolbar to view the Google PageRanks of all the sites that you visit.
d. Google PageRank Prediction – A future Google PageRank prediction. If you are dying to know, these sites can give you a fair estimate of your future PageRank.
e. HTML Optimizer – A clean up of your HTML source code. Be careful when you apply the suggested changes though. Always good to backup the template before making any modification.
f. Index Checker – Number of pages of your website that are indexed by search engines. If pages are missing from the index, try submitting your sitemap again.
g. Keyword Density Checker – The keyword distribution in your webpage. This will by and large influence the sort of Ads that AdSense will place on your site.
h. Keyword Suggestor – Suggested popular keywords for your website. Bear in mind these keywords when writing or editing your posts.
i. Meta-tags Generator – Configuration of website's meta-tags. Tailor a suitable description and set of keywords to be inserted into the template.
j. Reciprocal Link Checker – A check to see if the partners in your blogrolls or link exchange are linking to you.
k. Spider Simulator – The page contents as seen by a search engine spider. Some may give you a breakdown of the commonly used keywords in your site.
l. Traffic Graphs – A comparison of your site's and other competitor sites' traffic history graphs in Alexa.
m. Website Speed Test – Speed of website page load. If you find the pageload time a little long, take some measures to have a Faster Web Page Load Time.

Basic Tools
Should you want to have a quick look at what some of the SEO tools are about, we have created a few basic search tools over here at our Tips for New Bloggers site.

Yahoo!
To know how Yahoo! sees your site, enter into the search box below your website's URL in full, beginning with http:// For Blogger blogs, you do not have to add a “www.” into the blog URL.

1. Yahoo! Indexed Pages
The results will show you the number and details of the web Pages that are indexed by Yahoo!

2. Yahoo! Backlinks
Enter your site's URL to see the Inlinks or backlinks of your site.

Google
The data in the various search engines are not the same. You can have a look at how your blog is performing in Google search by entering your site URL below.

1. Google Indexed Pages
Enter URL after the word "site:" to view the indexed pages in Google.

2. Google Backlinks
Enter URL after the word "link:" for details of the backlinks to your site.

MSN Live Search
Compared to Google and Yahoo!, MSN spiders may not index as many pages. Nevertheless, if you are curious to know, enter your blog URL into the search boxes below.

1. MSN Indexed Pages
Enter URL after the word "site:" to view the indexed pages in MSN.

2. MSN Backlinks
Enter URL after the word "link:" for details of the backlinks to your site.

Page Rank Checker
This search tool is provided by Prchecker. Enter a URL into the form to view the Google PageRank.

Alexa Rankings
Alexa monitors the web traffic of many top sites. You can compare and view the Alexa traffic graph of your site by entering your site URL into the search box below.

 

Sunday, 19 February 2012

submit blogger sitemap to google-useful tip for new bloggers

This tip explains how to generate and submit blogger sitemap to google webmaster tools:
Before doing this,let me say what are sitemaps and how they will help us.The reason we use them is,they will help google bot to crawl,index pages of your site and tell you if there are any problems when they try to index it.It also helps you to know,how many pages exactly are indexed,and what people searched in the search engine to visit your site.
Let me explain the detailed procedure on how to submit your blogger sitemap to google.
1.First,go to google webmaster tools and sign in with your gmail account.
2.After you logged in, you will see this asking you to add a site.

google webmaster tools
Add your blog url(ex:kranthitips.blogspot.com).Don't add with http or www.

3.Next,it asks you to verify your site.It is just to confirm whether you are the owner or not.

CLICK on the 'verify your site' link.

click the 'verify your site' link



Next,

choose verification method


4.There are two ways to verify your ownership but, there is only one way for the blogger users to add a metatag.

copy the metatag

5.Copy the metatag.

Now,sign into your blogger account>click the layout button>Edit html and paste the metatag just after the head tag and save the changes.

paste the metatag like this
and click the verify button in the google webmaster tools and there will be a confirmation message saying that you have sucessfully verified.

conformation message

Now,you have to submit a sitemap for google to crawl your site.Go back to the google webmaster dashboard or (home) and click the 'Add' link which is next to your blog name and in the Sitemaps column.Then,you see this,



Choose 'Add general web sitemap' from the dropdown menu and type rss.xml or atom.xml next to your blog address as shown below



or


and click the 'Add General Web Sitemap' button.

6.That's it.Now your sitemap is successfully submitted to google.Check 2 or 3 days after and you will see the detailed statistics of your blog(indexed pages,any errors,etc.)

If you have any questions regarding this,you can ask here via your comments

 

How to add colors to Blogger Scrollbar

Hi bloggers and readers! Well This is an amazing hack for adding some colors to that pesky browser scroll bar. Its very easy to do tha. There is a small peice of code you will have to add to your blog's html.

Now before you use this code, i must make you aware that it will not work in Firefox...they don't like people messing with their colors, so you can only get this to work in Internet Explorer.

The last caveat that I add to it is that, if you're anal retentive like I am about making my web pages validate this one is going to throw you for a loop because according to W3C...it ain't valid! So you will get an error code for it, but it won't break your page or anything unless you have like 5000 other errors!

Okay...here's what you have to use:


<!--[if IE]>
<style type="text/css">
html {
scrollbar-arrow-color:#6E0502;
scrollbar-track-color:#940400;
scrollbar-face-color:#6BE02;
scrollbar-highlight-color:#909400;
scrollbar-3dlight-color:#333333;
scrollbar-darkshadow-color:#473624;
scrollbar-shadow-color:#BFB186;
}
</style>
<![endif]-->



And you scroll down til you get to the end of the <head> section, and you put it right BEFORE the </head> tag.

You can choose any color according to the matchig look for your blog by replacing the hexadecimal code(#99ccff).

How to Show Visitors Home Location

If you want to amaze your visitors by showing their own details on your website/blog, like IP address, ISP name, Country, region and time zone, then here is some block of code that you have to add to your blog.
The two images in blue displayed below, presently would be showing your details, similarly it would show the details of anyone reading your blog/web site if you place these on your blog.



Code to be added:
<img border="0" src="http://www.ip2location.com/images/ip2location.png"/>
Widget by <a href="http://bloggertipsandtemplates.blogspot.com"/>BTAT</a>

OR you may add this image:


Code to be added:
<img border="0" src="http://www.ip2location.com/images/ip2locationbig.png"/>
Widget by <a href="http://bloggertipsandtemplates.blogspot.com"/>BTAT</a>

Simply add a HTML/JavaScript widget in your blog, and add any of the two codes shown above. That's it....no javascripting or any other complex coding required for this hack.

How to Add Marquee effect in Blogspot

This post explains you how to add Scrolling text ( also called as marquee ) to your blog sidebars,blog posts,etc.
Another way to attract the visitors is adding some decoration to the site like scrolling text,etc.But,don't decorate it too much,particularly if your site contains too much text as it irritates and spoils the concentration of the reader.You can add scroll bars to tell your visitors what will be your next updates,popular posts,advertisements,etc.
So,how to add the scrolling text in your blog,let me explain it:

Adding simple scrolling text:
Here is the code to add a simple scrolling text from right to left side


The output will be like:
Example 1:
code to simple scrolling text

If you want some more attraction,then try these,
Add a background color to the text:

Example 2:
code to simple scrolling text

You can choose your background colour by replacing the hexadecimal code(#99ccff).
Click here to see the codes of the different colors.

Here are some mode attributes to learn:






direction="left"
direction="right"
direction="up"
direction="down"

The above attributes tells the text which direction to scroll.
Use the code below:

Here are some examples:
Example 3:
To scroll in the 'right' direction:
code to simple scrolling text

Example 4:
To scroll in the 'up' direction:
code to simple scrolling text

Example 5:
Down: ( I changed the hexa decimal codes for different colours )
code to simple scrolling text

few more attributes:
You can add this attribute to alternate the text

Here is the code to do this:

Example 6:
code to simple scrolling text
You can also set the speed of the text with this simple attribute:

The lower the scrollamount value, the less the speed it moves,
the html code for this:

example 7:(for scrollamout =2)
code to simple scrolling text

Example 8:(for scrollamount=5)
code to simple scrolling text

Pausing the text when mouse is over the text:
It is very useful when the reader wants to read the text,and the scrollamount is big, so that he will put the mouse over the text to pause the text and read the matter:
Here is the code to do this

Example 9:
code to simple scrolling text

(place the mouse over the text to test it)

Changing the text colour:
Here is the code to change the text colour:(Add it before and after the marquee tags)

So, the code looks like this

Example 10:
Code to simple scrolling text

Adding hyperlinks:
You can also add the hyperlinks in text.
Here is the sample code:

The output will look like this:
Remove Navbar # Internet tips # Add Read More tag in Blog
That's it!Now you can add this to your blogger sidebar,in the blog post,where ever you want.

If you have any doubts, ask your questions via your comments.