Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello everyone, I want to create a button to print a website with a recipe. However, the button and menu bar should not appear in the printout. Is there a way to create this and how does it work? |
||||
|
Right click the button, select "Insert Hyperlink", then paste javascript:window.print(); This will cause the button to print when clicked. To make it invisible when printing, right click the button, select "HTML Code..." Take a look at the code, notice that it has some id at the beginning of the code, looking like this: id="button_33dab022" Copy that id - in this case "button_33dab022". Close the dialog, and in the menu select View -> HTML Code of page -> Additional css styles. Paste this in there: @media only print { button_33dab022 { visibility: hidden; } } And be sure the id of the button in that code is the one you copied. |
||||
|
First of all thank you, unfortunately with this tip the text of the button is still visible in the print! |
||||
|
Are you sure you pasted the right id? If you cannot figure it out, send your rcd file to support, they will be able to help you. |
||||
|
|
||||
|
I have tried erik's proposal, but that didn't work as requested. It prints the entire page including the print link and also including the navigation menu and the footer. |
|