Statbar <br> tag possible?

Hello Themeco! I’m using the new Statbar element, and I’m wondering if it’s possible to add a <br> tag to the text in the Statbar Element > Bar > Label? See screenshots in the next private post.

Screenshot #1: Statbar labels look great when looking at them in the cornerstone builder.

Screenshot #2: Statbar labels are showing the <br /> tag (the <br> tag functions the same way).

Any thoughts would be appreciated.

Thanks!
Tim

P.S. This is a high-profile client that will not allow access to their site.

Hello Tim,

Thanks for writing in!

The statbar label is only allowed to accept plain text. Any code or html tag added to it will be displayed as plain text.

You will have to adjust the width of the label so that the texts will collapse.

If you want to maintain the width of the label background and limit the width of the text instead, please make use of this custom css:

.x-statbar .x-statbar-label span{
    max-width: 50px;
}

Feel free to adjust the maximum width.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.