How can I print only the content and not the whole page with a button?

  • 1
  • Question
  • Updated 7 years ago
How do I make a page printable and only print the content and not the entire page? I want to be able to print only the image attached to the page and not have any of the actual site appear. I know how to add a general print button that prints it all, but this is not what I need. The image files are currently in jpeg.
A lot of sites that I see that have printables have a print button that pulls up your printer window and all you have to do is hit print unless you want to adjust your settings. Thank you.
Photo of Christian clipart

Christian clipart

  • 15 Posts
  • 0 Reply Likes
  • frustrated

Posted 8 years ago

  • 1
Photo of Justine

Justine

  • 751 Posts
  • 45 Reply Likes
Hello Christian clipart,

From what it sounds like, you would like a "print page" function. To do this, add the following code to your page:

<!-- <a href="javascript:window.print()" rel="nofollow">Print This!</a></span> -->. Be sure to remove the <!-- and --> before you paste the code on your page, it's there to prevent it being embedded in the forum.

To add the code, follow these steps:

1. Drag-and-drop an HTML Widget from the Sidebar on the right onto your page (the icon for this is a blue sphere).
2. An HTML editor will open up that will allow you to write or paste your code (use right-click > paste or ctrl-V to paste).
3. When you are done, click "OK" and your HTML will be displayed on the page.

Hope that helps!

- Justine
Photo of bball84095

bball84095

  • 12 Posts
  • 1 Reply Like
I don't think you read the full question before answering Justine!