Include / Exlcude Content
Using specific CSS classes, you can include or exclude content selected by PrintFriendly.
print-only
Only those elements with the print-only
class will be selected when it is used.
<div class="print-only">
<p>This content will be included.</p>
</div>
<div>
<p>This content gets excluded because print-only was used.</p>
</div>
<div class="print-only">
<p>This will be included because it has class="print-only"</p>
</div>
print-yes
Elements with print-yes
class, will be selected in addition to the content automatically
selected by PrintFriendly
Tip
print-yes
is best used when PrintFriendly detects most of the content but you want to include
some missing elements
print-no
You can apply this class to one or more elements to exclude the elements and all their children.
pf-title
Add this class to a single element for setting the page title.
pf-author
Add this class to a single element for setting the page author
pf-date
Add this class to a single element for setting the publication date.
copyright
You can apply this class to one or more elements to include the elements and prevent them from being deleted by the user.
page-break-before
Adds a page break before any element when printed or converted to PDF
page-break-after
Adds a page break after any element when printed or converted to PDF
delete-no
Elements with this class cannot be deleted by the user