Title: Text overflow when using tag in shortcode
Last modified: October 12, 2020

---

# Text overflow when using tag in shortcode

 *  Resolved [notts90](https://wordpress.org/support/users/notts90/)
 * (@notts90)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/text-overflow-when-using-tag-in-shortcode/)
 * I have a button, which if I insert normal text as a part of the shortcode it 
   works fine. If I use the `<h2>` or any other heading tag in the shortcode text,
   the box no longer resizes with the text.
 * e.g. `[maxbutton id="1" text="yourtext"]` works fine but `[maxbutton id="1" text
   ="<h2>yourtext</h2>"]` breaks the button resizing. It does display the heading
   text, just the text overflows and the button stop resizing correctly.

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

 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/text-overflow-when-using-tag-in-shortcode/#post-13524563)
 * You should style the text in the button editor, not any heading to it, this could
   break the button itself.
 * That said, probably your theme styling takes over on those headings.
 *  Thread Starter [notts90](https://wordpress.org/support/users/notts90/)
 * (@notts90)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/text-overflow-when-using-tag-in-shortcode/#post-13524584)
 * Thanks for the reply, much appreciated.
 * I did see see the font and size in the editor, however I haven’t seen anything
   for setting the heading tag. Is this possible?
 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/text-overflow-when-using-tag-in-shortcode/#post-13526399)
 * You can put a button in a heading, if there is a reason for that. But the styling
   will probably change based on your theme.

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

The topic ‘Text overflow when using tag in shortcode’ is closed to new replies.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

## Tags

 * [font](https://wordpress.org/support/topic-tag/font/)
 * [heading](https://wordpress.org/support/topic-tag/heading/)
 * [size](https://wordpress.org/support/topic-tag/size/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/text-overflow-when-using-tag-in-shortcode/#post-13526399)
 * Status: resolved