Excellent topic!
We will add both the aria-label along with a filter to both the current version and the 2.0 release candidate.
If you are setting up something new, we highly recommend you check out the RC:
https://github.com/baden03/print-o-matic/tree/2.0-redo
Stay tuned. We should have an update for you within the hour.
OK, there is even an easier solution:
https://spacedonkey.de/2400/print-o-matic-external-buttons/
Simply create the print button exactly how you like:
<button id="my_print_button" class="printomatic" data-print_target="#print_me_please" aria-label="Print Page">Print Trigger</button>
Thanks so much @twinpictures !! I’m almost there, just looking for the attribute for the “do_not_print” – do you know which one might be? Tried data-do_not_print but no luck.
Thanks!
OK, the do_not_print can be set globally in the options page, or on a per-trigger passes using the hidden print trigger as explained in the demo:
The final thing we need to do is include a hidden print trigger using a print-me shortcode with the same id as our external trigger and the new external printstyle attribute. This shortcode must be placed someplace on the same page, and will load in all the required scripts and settings to make the print trigger work correctly.
So on the same page the button is placed:
<button id="my_print_button" class="printomatic" data-print_target="#print_me_please" aria-label="Print Page">Print Trigger</button>
place the hidden print trigger with the do_not_print defined:
[print-me id="my_print_button" do_not_print=".noprint" printstyle="external"/]
If you still have issues, ping back and we’ll see about adding a data-element to ease the pain 🙂
not sure why the Setting Do not Print wasn’t working for me, but I found a workaround targeting a div that contained all I wanted.
Closing the ticket, thanks so much for your help @twinpictures !