Hi Reflexiv,
I am not the plugin author but I had a similar error. Then I notice that when I updated the page, WordPress had added extra div tags before and after the shortcode. When I deleted those it was fine.
What I entered into the body of a post:
———-
<div id='print_div'>
bla bla my post
bla bla my post
bla bla my post
<div/>
[print-button target='div#print_div']
———-
What I saw after update, after WordPress fixed my post.
———-
<div id='print_div'>
bla bla my post
bla bla my post
bla bla my post
<div><div/>
[print-button target='div#print_div']<div/>
———-
I deleted the WordPress-imposed fix and re-updated. All good. It does not re-fix upon saving again. Curious.
remove the spaces between the brackets and the code. Instead of this:
[ print-button ] do this: [print-button]
or do this: [print-button target=’body.page’]
It is supposed to print the ‘body’ tag id you don’t define a target, but that’s not working in my theme.