I'm having some problems with a simple task. I have a popup on a WordPress page, which is an element without an id. I need to take the user to a certain location on the same page when it clicks it.
The popup uses the method "window.location.href" to redirect the user. For some reason, if I define it as an anchor, it just doesn't work. I tried several things (different hashes and syntax combinations, tried to select the popup using ClassName and then setting on an id, so that it can manages its onclick), but nothing worked.
The popup is generated/managed through a plugin (Ninja Popups), so it's not something I'd really wanted to mess with...
Is there any way to make the method "window.location.href" work with an anchor? I can insert some JS, I just can't modify the system or the plugin itself.
Here is the link if you want to check by yourselves: https://quintaldoespeto.com.br/