Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1154345

    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!

    • This topic was modified 5 years, 11 months ago by cksilverman6.
    #1154434

    Hey cksilverman6,

    Have you tried typing
    “/&amp/;”
    in the back-end?

    Best regards,
    Jordan Shannon

    #1154451

    Hey Jordan,
    I did. Similar results.

    • This reply was modified 5 years, 11 months ago by cksilverman6.
    #1154621

    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

    #1154674
    This reply has been marked as private.
    #1156259

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.