This is pretty a straightforward tip but might come in useful for someone.
If you want to add a “Print Page” button to your website:
1.Create a button or link as normal and set it’s id to “print”
2.Add this piece of script to the footer:
<script>
$("#print").click(function() { window.print(); });
</script>
3.Publish the site and that’s it!
PRINT-FRIENDLY PAGE
Finally, if you want to make your content print friendly, you can add custom css to the footer using:
@media print{
.sidebar, .footer, .nav-bar {
display: none;
}
}
In the above example, the classes specified will not be displayed.
Sin a bhfuil!