Any way to set a custom title tag for icons so it doesn’t carry the html tags with it?
tictocequestrian.com.au
I have 4 sections with icon boxes, and one has two lines for the heading, aligned with a < br/ > tag, this is showing in the hover title/alt tag and it’s not very pretty.
Any idea how to remove that?
Hey johno69,
Thank you for the inquiry.
You don’t need to add the br tag because a second line will be automatically created for the title if necessary. If you really think that the line break tag is necessary, you can use a script to remove the br tag from the title attribute.
// https://www.w3schools.com/jsref/jsref_replace.asp
Best regards,
Ismael
The title stays on one line if I don’t use the break tag. Thanks, i’ll have a look at the link you sent.