How to add a print Button to your post

How to add a print Button to your post

Just add the bellow code to your wordpress loop

<a href=”javascript:window.print()”>Print</a>

Or Alternately can use this code also like below

<input type=”button”
onClick=”window.print()”
value=”Print This Page”/>

This is so simple

Leave a comment