• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

ToolTip text truncates after space


Active member
Not sure if this is the appropriate section, so sorry in advance.

I made some template edits to display icons in the postbit when a value is entered. And when the user hovers over the icons, it displays the value. But if there is a space in the value, the tooltip only displays the letters before the space. How can I fix it?

Here's the code I used.

<xen:if is="{$user.customFields.youtube_id}">
<a href="http://www.youtube.com/{$user.customFields.youtube_id}" title={$user.customFields.youtube_id} class="Tooltip"/><img src="http://www.vicegamers.com/images/youtubepb.png"/></a>

<xen:if is="{$user.customFields.twitch_id}">
<a href="http://www.twitch.tv/{$user.customFields.twitch_id}" title={$user.customFields.twitch_id} class="Tooltip"/><img src="http://www.vicegamers.com/images/twitch.png"/></a>
Last edited:

Chris D

XenForo developer
Staff member
You're missing the "quotes" around the title attribute, e.g.

Should be: