-
Hello
I need to print a div with the class name Woocommerce, can you help me how to do this task with the shortcode [print-me]?
-
If “Woocommerce” is exactly the class of the element:
[print-me target=".Woocommerce"/]
as explained in the documentation on the target attribute.Hello
It worked, but it printed 2 times the contents of Woocommerce and I just want it to print once
You can see in the link below

Without being able to inspect your page we can only assume you have multiple elements with the exact same class. If you need further assistance, please include a link to the page that exhibits this behaviour.
Can you give me your email so that I can give you the credencials and the link of the page?
You seem to be using chrome.
check your page using the web inspector:
https://developers.google.com/web/tools/chrome-devtools/You can even hit Cmd-F to bring up a ‘Find’ box and search for all instances of your class. You will probably find multiple instances of your class in the source.
If you only want to print a single element, look for the ID, as there should be a unique ID for the same wrapping element as your target class. Target an ID like so:
[print-me target="#some_unique_id"/]We would like to assist you further, but this is the limitation of free support offered here on the WordPress forums. If you require personalized support, you might look into upgrading to Print-Pro-Matic, as it comes with a high level of personal support.
All the best!
And if I want to print more than one class our ID how do I do?
Hello
It worked with more than one class, but why does the print only display the values when I press the button to print the second time?
In the images below an example
First time I press the button:

The second time I press the button:

Are there any errors in your JS console?
Without a link to your site, we can not help further.Hello
This are the errors of my console
JQMIGRATE: Migrate is installed, version 1.4.1
util.js:221 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
BB.jGoogle Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error
The topic ‘Print’ is closed to new replies.