37
Views
2
Comments
Solved
How to take the buttons off the print screen

Hi, 

When I click to print the file, the buttons that were on the screen appear on the print screen, how do I remove them? For printing I am using [window.print()] from JavaScript. 

I am a beginner, if it is possible to show the step by step I would appreciate it


Tirar botões ao imprimir.png
2023-03-03 06-59-12
Reemali patil
Solution

Hi Vinicius Perpetuo,

First of all , you have to enclose that button or whatever u dont want to print in a container like this:

Second , open CSS editor which is present on top beside theme editor and apply css like this:

@media print

 {

 .printbtn{ 

       visibility: hidden;

}

}

 Third, you have to apply that class on that container in which you enclose that button which you dont want to print like this:

lastly, publish and check

That's all !!!

Hope this helps you !!!!!

Regards

Reemali

2023-08-29 14-56-14
vn_perpetuo

Hi Reemali

It worked! Thanks a lot for the help!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.