Is there a way to use the CTA buttons to trigger a CSS selector? Right now it’s requiring a URL.
Thanks for using Announcer.
In that case you can simply create a <script> tag and add your JS under that.
You can target the “primary” button with the below selector.
var announcement_btn = document.querySelector('#ancr-471 .ancr-btn-primary');
Replace 471 with your announcement ID and in my code use to triggger whatever needed.
Marking this as resolved.
Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter