Normally when you print you blog pages using a printer you will find an awful print. The printer may show un revalent printings.
Thinking it as the mistake of printer is a wrong idea as it has nothing to do with that awful print. The un-necessary stuffs such as ads where appearing and the necessary stuffs were disappeared.
But this problem is not solved, as today we shall be making our blog pages (posts/static pages) printer friendly. We can remove those un-necessary stuffs easily. So, to do it follow below steps;
Thinking it as the mistake of printer is a wrong idea as it has nothing to do with that awful print. The un-necessary stuffs such as ads where appearing and the necessary stuffs were disappeared.
But this problem is not solved, as today we shall be making our blog pages (posts/static pages) printer friendly. We can remove those un-necessary stuffs easily. So, to do it follow below steps;
Adding CSS Code;
We will need to add CSS code to our blog to make it printer friendly. Follow below steps;
- Go to blogger dashboard>Template>Edit Html.
- Find <b:include data='blog' name='all-head-content'/> in your template code.
- Then add the below code just after it;
<style media='print' type='text/css'> #header-wrapper, #header, .header, #sidebar-wrapper, .sidebar, #lower-wrapper, #footer-wrapper, #footer, #credit, .comment-form, .post-footer, #blog-pager, .post-feeds, #backlinks-container, #navbar-section, footer {display: none;} #content-wrapper, #main-wrapper, #main { width: auto !important; overflow: visible !important; float: none !important; color: black; font-size: 12pt; background: white; border: none; } #main a { text-decoration: underline; color: blue; } </style>
- I have only added some sections to be excluded. If you want to exclude more sections, if you have any then add them just after "footer" in line 4.
- Click on save template.
Adding Print Button;
Your blog is already printer friendly. But what if you need to add a print button on your page. If so follow below;
- Copy the below code;
<b:if cond='data:blog.pageType == "item"'> <a href="javascript:window.print()"><img border="0" style="margin-right:5px" src="YourImageUrl"/>Print this article</a> </b:if>
- In the above code replace "YourImageUrl" with the direct link to your print icon which would appear as a print button
- After you copied above code paste it where ever you wish, the print button to appear.
I hope this trick worked for you.
Bye Pals!
7 comments
comments"un revalent"? I assume you mean "irrelevant"...?
Reply@Anonymous
ReplyI mean so. Thanks for your suggestion..
Every weekend i used to pay a quick visit this web page, for the reason that i wish
Replyfor enjoyment, for the reason that this this web site conations really
pleasant funny information too.
Here is my blog; waist hip ratio
What's up everybody, here every one is sharing such experience, therefore it's
Replynice to read this webpage, and I used to go to see this
weblog all the time.
Also visit my web-site laser printer
I am extremely impressed along with your writing abilities and also with the structure for your blog.
ReplyIs that this a paid topic or did you customize it your self?
Anyway stay up the nice high quality writing, it is rare to peer a nice blog like this one
today..
my web-site ... seagate hard drive review
Your blog is useful blog for printing.
ReplyFor Expert HP Printer Support Solution
This is all about relavent to printings
Reply