• Resolved rsspanic

    (@rsspanic)


    Hi, I have a very simple snippet which shows a “subscribe to us” email field and submit button. If I define it as a snippet, i.e. without the “shortcode” option checked (so that the full html is always pasted in to my posts) then it works.

    http://i.imgur.com/X22SqHn.png

    But If I take the same snippet and turn on “Shortcode”, and try to use the [xxx] designation in the post instead of the full HTML insertion, it messes up the formatting of the end result – puts spaces here and there, &nbsp’s, text lines overlapping each other and broken in half.

    http://i.imgur.com/aotEbOU.png

    Reverting back to shortcode off with the same code makes all the problems disappear. But I need to use a shortcode for this one so that it will be always up to date on all of our posts (i.e. not static html).

    What can I do. Thanks

    The code that the shortcode stood for is listed below.

    <p style=”padding:10px 0px 0px 150px; width:450px;font-size:14px;color:#C63132;line-height:4px;”>Get our newsletter</p><!– padding is Top Right Bottom Left –>

    <p style=”padding:6px 0px 6px 120px; width:450px;font-size:16px;color:#C63133;line-height:4px;”>and always stay updated.   Free registration</p>

    http://wordpress.org/extend/plugins/post-snippets/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi.

    I’ll look into this, and made an issue out of it.

    The example code you posted, it seems like the forum here, rendered parts of it instead of displaying the code (the links: get our newsletter, and always stay updated….), which means I can’t see the entire snippet as you have it. Do you think you can repost it as code here (use the code tag) or on the issue thread linked in this post, so I can replicate your code exactly.

    Cheers,
    Johan

    Thread Starter rsspanic

    (@rsspanic)

    Here it is, thanks…

    <p style="padding:10px 0px 0px 150px; width:450px;font-size:14px;color:#C63132;line-height:4px;"><a href="test.com/signup" target="_blank" style="text-decoration:none;color:#C63133;"><strong>Get our newsletter</strong></a></p><!-- padding is Top Right Bottom Left -->
    
    <p style="padding:6px 0px 6px 120px; width:450px;font-size:16px;color:#C63133;line-height:4px;"><a href="http://test.com/signup" target="_blank" style="text-decoration:none;color:#C63133;"><strong>and always stay updated.&nbsp;&nbsp;&nbsp;</strong></a><a href="test.com/signup" target="_blank" style="font-family:Helvetica,sans-serif;font-size:16px;background-color:#043948;border:1px solid #1e3650;border-radius:8px;color:#ffffff;font-family:sans-serif;font-size:12px;font-weight:bold;line-height:12px;text-align:center;text-decoration:none;width:90px;-webkit-text-size-adjust:none;padding: 2px 18px;vertical-align:-1px;">Free registration</a></p>

    Hi,

    In the next update (v2.2) soon to be released, I’ve made an adjustment that allows you to use &nbsp; in your snippets.

    Thread Starter rsspanic

    (@rsspanic)

    Thanks….

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Shortcode" checkbox creates formatting problems’ is closed to new replies.