First: there is no ‘article’ element on your page, so you need to define a proper target. If you want to just print the main content, and not the footer, then the target would be: #content_area
you can assign this either in the shortcode:
[print-me target="#content_area" /]
or better yet, update the default target in the plugin settings and then the shortcode would simple be:
[print-me /]
Please let us know if this resolves the issue or if you need more direction.
Hello thanks for your reply. I’m sorry but I don’t follow what I’m suppose to do.
I have tried to put [print-me target=”#content_area” /] in an html block in all the elements I want to print but it gives a print icon on each one. Right now I just have [print me target=”body”] at the top.
Within the settings of Print-o-matic the only thing I have in there is the Default Target Attribute: article
I’m sorry but I don’t understand what is supposed to go where.
Thanks for your help.
OK, First, you only need to place the print-me shortcode once on the page. Place this where you want the ‘print’ trigger to appear.
Next: the default target attribute is set to ‘article’ by default. Since your theme does not use an article element, you’ll need to change this. From your previous post, you said you do not want to print the footer. This is why we recommend that you target the element with the ID of ‘content_area’ by changing the default target attribute from article to: #content_area
This should print all the content on the page EXCEPT for the footer.
If you want to print only specific elements then we can help you set that up as well, but you’ll need to be more descriptive as to what you are trying to accomplish.
Let us know if that helps!
Thanks for your response, I had to wait to reply because people were on our page today and I didn’t want to mess them up.
I’m not sure where I’m supposed to put the id of ‘content_area’. Do I need to add another html shortcode into my page and then just type in content_area? … After I put in #content_area into the default target attribute.
All you have to do is replace the [print-me target=”body”] shortcode with:
[print-me target="#content_area" /]
Notice the hash symbol, this is required.
That is it.
If #content_area
has already been set as the default target attribute, then you would not need to define the target in the shortcode:
[print-me /]
Please let us know if you require further clarification.