I'm creating a Wordpress site with a Superfish CSS3 / Jquery dropdown menu, complete with hoverIntent as displayed here:
http://users.tpg.com.au/j_birch/plugins/superfish/#examples
As far as I can see, this menu works well on mobile devices, because the link values refer to the same page, like #a
, so that clicking a link does not cause the page to reload.
Please bear with me. I know that the right way would be to replace the dropdown menu entirely (with a select box or some other tool), but I need to have the exact same experience as on a desktop (long story).
My question is: how can I replace the href value of parent pages, with an internal link like #a
?
My guess would be that doing this via jQuery would be the best solution. What are your views on this and could someone please provide a practical answer? Thanks in advance.