Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Support request] Help with a little javascript in copyright field footer

Home Forums Support [Support request] Help with a little javascript in copyright field footer

Home Forums Support Help with a little javascript in copyright field footer

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1125409
    Toni

    I can’t put this little code in the copyright field footer with html allowed:

    <a class="change-consent" onclick="window.__cmp('displayConsentUi');">Configuración de privacidad</a>

    This show the privacy consent in my page, but when paste this code, the onlick call disappears. 🙁

    Thanks and sorry for my bad english.

    #1125884
    David
    Staff
    Customer Support

    Hi there,

    looks like WP doesn’t like that HTML inside the Customzier.
    What happens if you add it to a HTML Widget in the Footer Bar ?

    #1125898
    Toni

    html Widget in the footerbar1 works, but not in the copyright bar.

    #1125906
    Toni

    Well, the widget appears in the footer bar, but aligned to the right. I have been able to fix it more or less. At least the javascript call works. (look my homepage)

    #1126114
    David
    Staff
    Customer Support

    Not sure why the Copyright field rejects it. Looks good in the widget, is that acceptable ? Let me know

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