Ad space

In-article ad

Ad space
eyJ2IjoxLCJiIjoiODk4NzUxMjU0MTU2NDk5MDUwIiwidyI6ImRlbW8iLCJ0IjoiMSJ9.JNwytzxn68dvLH1Z_gmjrF_npbIlkG_5lKkKaJtx68sNq6xmnGUZVOKYtYqT99no2gj0XcjwsZiev9GzFJK0OA

Head extras

Print Styles in Centum: Clean, Print-Ready Posts

Good posts are read on screen and sometimes printed for review or archiving. The print styles built into Centum make any post on your blog print cleanly, like a document made for paper: no sidebars, no ads, no buttons, and links you can still read. All of it is automatic, with no setup and no add-on.

What happens when you print?

When a visitor prints a page from your blog (from the browser menu or with Ctrl+P), Centum automatically hides the header, navigation menu, news ticker, pinned posts strip, sidebar, footer, ad spaces, share buttons, newsletter box, "Read also" links and comments. Only the content stays, in a clear font on a white background, and link addresses are printed as text next to each link so references are not lost on paper.

Live example

Try it now: open any post on the demo blog and press Ctrl+P (or choose "Print" from the browser menu). The print preview is clean and shows the content alone.

Does it need any setup?

No. The print styles are built into Centum and work from the moment you install it, on every post and page. They load no extra code and do not affect page speed at all (they are print-only CSS). Because they use the standard @media print rule, they work in every modern browser.

Everything in this guide works out of the box in Centum, with no code and no add-ons.

Copy-and-paste example

Print styles work with no setup. If you want to hide one of your own elements when printing, paste this rule into the Header add-ons box inside a style tag, and replace the class name with your element's class:

<style>@media print{.my-box{display:none!important}}</style>
About the author

Ad space