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:[[print-me print_only=”.printonly”/]] Actually, this should not be passed via shortcode, but rather only defined in the option page.[[print-me /]] …

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. [[print-me target=”#print_me” placeholder=”true”/]] This will not add the trigger to the page, just the targeting info for when the trigger is later displayed. [print-me target=”#print_me” …

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 …