Hide On Print for Newton Skins
In the spirit of the Hide On Print page that so many people find useful, this page details how to hide everything but the main content area when printing - using the new Layout and Style Sheets screens and the Newton layout.
You must be logged in as an Administrator user to follow these steps...
A. Create a new Print style sheet
- Create a new page on your site by clicking the "create a new page" link.
- Call it NewtonPrintCSS, and be sure to select "HTML Source Editor".
- In the editing screen, click the Page Properties button. Click the "Serve raw page content" check box and select "Cascading Style Sheet (text/css)" from the MIME Type drop-down.
- Click the Page Content button to go back to the editor and past in the following content:
#column1, #links_container, #menu, #footer { display: none; width: 0px ; }
#main, #column2 { width:100%; } - Click Save - you'll be brought to the Style Sheets administration screen.
B. Add the Print-only style sheet to your layout
- Select Look & Feel -> Layouts from the site settings menu.
- Edit your current Layout (it should say "Current Default" next to it)
- Find the line that starts with "<link ..." - it should be within the first few lines.
- Paste the following in just after that line:
<LINK REL="StyleSheet" href="/NewtonPrintCSS" TYPE="text/css" MEDIA="print"/> - Click Save.
That's it!