Title: &quot;Shortcode&quot; checkbox creates formatting problems
Last modified: August 21, 2016

---

# "Shortcode" checkbox creates formatting problems

 *  Resolved [rsspanic](https://wordpress.org/support/users/rsspanic/)
 * (@rsspanic)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/)
 * 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](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](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**](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/test.com/signup?output_format=md)
   </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.   **](http://test.com/signup)[Free registration](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/test.com/signup?output_format=md)
   </p>
 * [http://wordpress.org/extend/plugins/post-snippets/](http://wordpress.org/extend/plugins/post-snippets/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Johan Steen](https://wordpress.org/support/users/artstorm/)
 * (@artstorm)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/#post-3688138)
 * Hi.
 * I’ll look into this, and made an [issue](https://github.com/artstorm/post-snippets/issues/23)
   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](https://wordpress.org/support/users/rsspanic/)
 * (@rsspanic)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/#post-3688163)
 * 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>
       ```
   
 *  [Johan Steen](https://wordpress.org/support/users/artstorm/)
 * (@artstorm)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/#post-3688248)
 * 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](https://wordpress.org/support/users/rsspanic/)
 * (@rsspanic)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/#post-3688250)
 * Thanks….

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘"Shortcode" checkbox creates formatting problems’ is closed to new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [rsspanic](https://wordpress.org/support/users/rsspanic/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/shortcode-checkbox-creates-formatting-problems/#post-3688250)
 * Status: resolved