Hi,
I’m having trouble with the Headline Rotator correctly displaying the ampersand (&).
When I type in an ampersand on the backend, it keeps displaying it as “& amp ;” on the front end. For example, when I type in “Art(ampersand)Copy” in the backend it displays “Art & amp ; Copy” on the front end. Also, an additional “amp;” keeps being added each rotation.
This is only an issue with the typewriter animation.
My url is below.
Please Help,
Thanks!
Hey cksilverman6,
Have you tried typing
“/&/;”
in the back-end?
Best regards,
Jordan Shannon
Hey Jordan,
I did. Similar results.
Hi,
Thanks for the update. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
Rikard
Hi,
Thank you for the update.
We modified the enfold\config-templatebuilder\avia-shortcodes\headline_rotator\headline_rotator.js file to fix the issue temporarily. The html entity version of the ampersand will be replaced with its actual symbol instead, and prevent it from getting duplicated.
Line 104:
var content = _self.$next.data('av_typewriter_text') || _self.$next.html();
content = content.replace(/&/g, '&');
Best regards,
Ismael