Print styles for articles
Articles print without header, footer and teasers.
Life cycle: Redesign, example 30 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
No layout change.
With templates
- In
mysite.css:@media print { .site-header, .site-footer, .zone-pre_footer { display: none; } }- the classes come frompagelayout/header.tpl,pagelayout/footer.tplandexplayouts/zone.tpl.
Which to choose
CSS.
Check
- The print preview shows only the article.
Related pages
- Styling your blocks
- Redesign examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.