publish your ads here for free trial



Selasa, 23 Juni 2009

Add Printer Button or Link to Blogger Blogspot

Today's article will show you how to add a print button or printer link to your Blogger Blogspot blog. The facility to print a hard copy of a post may be important to some visitors especially if you are like me and publish lengthy posts. Adding a printer button or link will add to your blog's functionality and user friendliness.

The reason I am writing this article is in response to a reader who asked me how to print out posts without the sidebar showing up. All the suggested buttons and links print out the post only and not the sidebar, header or footer.

This tutorial involves changing the template code but is not difficult as long as you follow these step by step instructions.

How to Add a Custom Print Button to Your Blogger Blogspot Blog
The following instructions will place a printer button on each individual page of your blog below the post. Only the blog article itself will be printed along with any comments. The sidebar will not be printed.

Example of the printer button to be added: icons

1. Log in to Blogger if not already logged in

2. Navigate to Layout > Edit HTML

3. Back up your template by downloading full template to your computer

4. Check Expand Widgets Template

5. Bring up the search toolbar by using CTRL + F

6. Find this line by typing it into the search box:

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

7. Now replace that line with the following code block:


<!-- Add Printer Button by http://blogknowhow.blogspot.com/-->
<span class='noprint'><p><data:post.body/></p></span>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<a href='javascript:window.print()'>
<img src='http://i1020.photobucket.com/albums/af326/bookwise77/printer-button.gif'/></a></b:if>
<!-- End Add Printer Button by http://blogknowhow.blogspot.com/-->


8. Click on Save Template to save changes

9. Click View Blog to see your button in action

Note: If you want to change the printer icon to your own icon upload your image to a photo storage service like Photobucket and note the URL address of the icon. Now substitute the URL address of the existing image for your image by changing the line beginning with <img src='
Change printer icon to this alternative printer icon icons

So to change the printer image to another printer image the code would look like:

<!-- Add Printer Button by http://blogknowhow.blogspot.com/-->
<span class='noprint'><p><data:post.body/></p></span>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<a href='javascript:window.print()'><img src='http://i1020.photobucket.com/albums/af326/bookwise77/printer-button-2.gif'/></a></b:if>
<!-- End Add Printer Button by http://blogknowhow.blogspot.com/-->


How to Add a Printer Link to a Blogger Blogspot Blog
You may not want a button and prefer to add a printer link instead. To do this you would follow steps 1 to 6 and then insert the following code instead of the code contained in step 7


<!-- Add Printer Link by http://blogknowhow.blogspot.com/-->
<p><span class='noprint'><data:post.body/></p></span>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<a href='javascript:window.print()'>Print this post</a>
</b:if>
<!-- End Add Printer Link by http://blogknowhow.blogspot.com/-->

Save the changes to your template and then navigate to an individual post to see your link at the bottom of the post.


How To Add a Combination of Printer Button and Link
If you would like to display a printer button along with a link follow steps 1 to 6 and then insert the following code instead of the code contained in step 7


<!-- Add Combined Printer Button and link by http://blogknowhow.blogspot.com/-->
<span class='noprint'><p><data:post.body/></p></span>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<span style='background: url(http://i1020.photobucket.com/albums/af326/bookwise77/printer-button.gif) left no-repeat; padding-left: 28px;'>
<a href='javascript:window.print()'>Print this post</a></span>
</b:if>
<!-- End Add Combined Printer Button and link by http://blogknowhow.blogspot.com/-->


In this article I have shown you how to add a print button, a print link and a combined button and link to the bottom of your Blogger Blogspot posts. Enjoy!


Related Articles
List of Blog Know How Tutorials for Blogger Blogs

0 komentar:

Posting Komentar

Popular Posts

Categories

3 column footer 4 column footer AddThis Social Bookmarking Amazon Analytics Banners and Advertising Blockquotes in Blogger Blog Directories Blogger Analytics Blogger and Facebook Blogger Comments Blogger CSS Help Blogger CSS Tutorial blogger description Blogger Feed Tips Blogger Footer Blogger Gadgets Blogger Image Border Blogger Images Blogger Meta Tags blogger meta tags tutorial Blogger Navigation Blogger Pitfalls Blogger Profile Images Blogger SEO Blogger Sitemaps Blogger Template Minima Blogger Templates Blogger Tutorials Blogging Tips and Tricks Blogspot Blogging Blogspot Meta Tags Blogspot Tutorials Borders in Blogger Buttons for Blogger Buttons for Blogger Comments Comments Counter CSS in Blogger CSS in Blogspot CSS styling CSS styling in Blogger Customise Blogger Customize Blogger Templates Customize Blogger Tips Drop Down List Drop Down Menu Drop Down Menu Widget Earn Money Online Expandable Post Summaries Expandable Posts Feeds Free Social Bookmarking Gadgets for Blogger Google Adsense Google Rankings High Paying Keywords Increasing Site Traffic Jump Breaks Keywords Make Money Make Money Adsense Make Money Blogging Make Money Online Making Money from Blogger Meta Tags Tutorial Monetize Blogger Popular Articles Posting in Blogger Posting Tips Read More Remove Navbar Search Engine Optimisation SEO SEO Tips and Tricks Sitemaps Social Bookmark Social Bookmarking Social Bookmarking Script Social Media Solutions to Common Blogger Problems Tables for Blogger Tracking Visitors Useful Blogging Tools Widgets for Blogger

Text Widget

Scroll To Top