I am no beginner Wordpress developer by any means but I am completely stuck with this. I have tried an array of alternatives without any result (href="#", href="#void", etc.).
I need "javascript:void(0);" as the href attribute in a HTML link. Inserting this in the text editor, flicking to the visual then back to the text editor makes it disappear.
I have read up some information on it (re: esc_url) but can't seem to find a fix. Is there a way for me to make this work on a Page in Wordpress somehow by way of a function or script?
The link I am trying to generate is:
<a href="javascript:void(0);"> subscribe </a>
Thanks in advance.
data-*
attribute and jQuery, hardcoding in the template upon some condition, custom field, disabling content filtering (very bad idea) and many more.