Shortcode that generates HTML doesn't work in title
-
Hi,
I used placeholders to make a title with a shortcode. It didn’t work as expected, since the title is not only used in the content of span.collapseomatic but also in it’s title attribute. This was my shortcode:
[expand title=’%{%ut_icon icon=”fa-at” size=”fa-2x” border=”none” align=”alignnone” color=”#26cefc” bgcolor=”#ffffff”%}% Email’ trigclass=”noarrow”]
…
[/expand][ut_icon] generates html that looks something like this: <span class=”…”><i>…</i></span>.
The outcome was messy and Firefox didn’t know what to make of it.
As a quick fix I commented out line 328 in collapse-o-matic.php:
// $altatt = ‘title=”‘.$title.'”‘;This has the effect that there are no title attributes.
- The topic ‘Shortcode that generates HTML doesn't work in title’ is closed to new replies.