Style Sheet
The printer icon is defined by the included default style sheet is as follows:
.printomatic {
background-image: url('print-icon.png');
background-repeat: no-repeat;
width: 32px;
height: 32px;
cursor: pointer;
}
Shortcode
The basic shortcode is [print-me] and can be placed on any post or page.
Target Attribute
By default the article element be printed. This can be changed by assigning any html Element Class, or Id.
Element
[print-me target="body"]
Class
[print-me target=".element_class_to_print"]
Id
[print-me target="#element_id_to_print"]
Placeholders
As of version 1.4 the placeholder %ID% may be used to automatically insert the post ID.
[print-me target="#post-%ID%"]
Printicon Attribute
By default the print icon will be displayed. A text-only link may be used by setting the printicon attribute to false.
[print-me printicon="false"]
ID Attribute
The id attribute will assign the printer-icon a specific id.
[print-me id="my_custom_id"]
If no ID attribute is defined, a random, unique ID will be automatically assigned.
Title Attribute
The title attribute will assign that title tag that displays roll-over text on the printer-icon.
[print-me title="Print Form"]
Print-O-Matic Options
The options page for Print-O-Matic is located under the Settings menu on the Dashboard. The following options are available for the plugin:
- Default Target Attribute—Print target. See Target Attribute for more info
- Use Theme Style—Use theme style for print
- Custom Style—Custom CSS Style for Ultimate Flexibility