• The shortcode is inserting the <p> tag before the <div id=”stb-container”> tag like this:

    <p><div id=”stb-container” class=”stb-container”><div id=’caption’ class=’stb-custom-caption_box’ style=”-webkit-border-bottom-left-radius: 5px; -webkit-border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; -moz-border-radius-bottomright: 5px; “>Mix<div id=”stb-tool” class=”stb-tool” style=”float:right; padding:0px; margin:0px auto”><img id=”stb-toolimg” style=”border: none; background-color: transparent;” src=”http://…/wp-content/plugins/wp-special-textboxes/images/show.png&#8221; title=”Show” /></div></div><div id=’body’ class=’stb-custom-body_box’ style=”display: none; “></p>

      and at the end of the shortcode this:

    <p></div></div></p>

    It is not valid markup and wish to know how to fix this.

    http://wordpress.org/extend/plugins/wp-special-textboxes/

Viewing 1 replies (of 1 total)
  • Yes, of course, it is not valid markup, BUT!!! STB does not add <p> tags somewhere in blog article. You can look an source code of a plug-in and be convinced of it.

    It seems to me that you enter double CR (by pressing Enter) after an initial short code and before a finite short code. You need to know that in WordPress WYSIWYG editor single new lines are converted to BRs (breaks) and double to P (paragraphs).

    How to fix:
    1. Do not insert any breaks between initial short codes and content
    2. Do not insert any breaks between content and finite short codes

    This rules are valid for all short codes containing content, not for STB only.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Special Text Boxes] Inserting Automatic Paragraphs’ is closed to new replies.