My b2evolution Version: 1.10.x
Does anyone have any advice or CSS to share about how to give a reader the option to view a post for printing? That is, i'd like to have a link in my posts that say "Click here for print format" and the post is rendered in a simple formatting that would not have the sidebars, headers, etc., that normally display with the post.
Thanks!
If you're really using v1.10 then this won't apply exactly, but I don't have a copy of that version laying about, so I'll pretend you're running v2.4.6 and go from there. Conceptually it's all the same though ... just different file names. Find and edit /skins/_html_header.inc.php looking for
and making it be:
Now you need to add to your /skins/yourskin/ folder a print.css file, which will really have to depend on your exact skin's divs and if they're ids or classes. But basically here's a shell of one:
.bPost is for if the div is a class, #menu-top is for if your div is an id. Basically though you can't control the printer so trying should be very limited at best. I also hide the sidebar, or at least used to when I used to upgrade skins and include a print.css sheet. The last block where it has three things then "display:none" is what hides a section from the browser.
Good luck, and welcome to the forums!
Oh and if v1.10 is really your version you should upgrade. the 1.* generation is pretty much obsolete. v2.4.6 is way cool and very very stable.