Print-O-Matic External Print Trigger – Target by Class

As of print-o-matic version 2.0.1 the ability to use class to target a print element in external print triggers has been added. Basically it works the same as using the data-print_target attribute but instead uses a unique classname in the format of printtarget-<target_id>. Step 1 Create a target element. The element below is a div …

Print-Pro-Matic wp_localize test

This is a test of print-pro-matic using wp_localize to pass js vars to the js file. it also passes print-only elements. Like this one with the .printonly class listed in the shortcode And here is the shortcode: Actually, this should not be passed via shortcode, but rather only defined in the option page.

Print-Pro-Matic Placeholder Attribute

The placeholder attribute is used to add the print-me data to the page when print trigger and target will be added dynamically, for example: via AJAX or a Modal Window. This will not add the trigger to the page, just the targeting info for when the trigger is later displayed.

Custom Print Templates for Print-Pro-Matic

Note: This post assumes a basic understanding of WordPress templates and that a child-theme is being used. To create a custom print template we first need to define a query var to trigger the template.Add the following to the child-theme’s function.php file: Now WordPress will look for something like /?print_view=true at the end of any …