Archived topic
Help with a little javascript in copyright field footer
4 replies · Started by Toni on January 8, 2020
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.
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 ?
html Widget in the footerbar1 works, but not in the copyright bar.
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)
Not sure why the Copyright field rejects it. Looks good in the widget, is that acceptable ? Let me know