I was shocked when I print my Page.It was looking so wired in print paper.All the unnecessary stuff like AdSense ads,Header,navigation Menu,comment form,Footers,Sidebars.The are making such condition that it was better to print page.But the problem was solved soon.By adding CSS we can make printer friendly page.We can remove sidebars,Scroll to Top button,Ads etc. using display:none method.We will also widen the content area of Blog.If we do so out blog page will be printer friendly.You can see demo if you print my page.Lets do it.
Adding CSS code.
- Go to Blogger.com
- Click in Template or Design.
- Go to Edit HTML.
- Find
<b:include data='blog' name='all-head-content'/>
- Adding the following code just below 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>
- Where
- In Line 2 We have added code which are excluded in Print paper.You can add the other id or classes like link bar etc.. which is to be excluded.
- In Line 3 we are are making content width automatic to printing paper.
- In Line 4 we are making underlining link.
- If You have any problem You can Comment.
Adding Print this Button in a Blog.
You may wish to add this button in a Blog.After adding this button if visitor click on Print Button the button will invoke to print the Page.To add simply follow below steps.
- Be sure you are in Dashboard>Design or Template>Edit HTML
- Tick on Expand widget located at top right part of code window.
- Print Button HTMl Codes.
- Find below corresponding codes where you want to add the Printer Button.
- At Footer Find this code and add print button code under it.
<div class='post-footer-line post-footer-line-2'>
- At Right part of Post Title(Find this code
<h3 class='post-title entry-title'>
and replace with below code)<span style='float:right;'><button code here>/span><h3 class='post-title entry-title'>
Replace Button Code here with print Button Code
- Below Post Titles find this code and add print button code under it.
<data:post.body>
- At Footer Find this code and add print button code under it.
Bye.If you encounter any problem the comment us.We are always here to help you.
What my Blog looks after making it printer friendly.(Demo)
When I print my blog it looks like this?What’s about Yours.
Have you got the difference of my blog in screen and print paper.You can see no sidebar,header,navigation bar,widgets etc.
Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.
0 comments on "Making Printer Friendly Pages.":
Post a Comment
We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam