We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36549
    • 572 Posts
    Hi,
    I have a menu where the dropdowns work on a desktop with a hover but on mobile devices with a click.
    My problem is that when i click to close the parent item on a mobile it sends me to the home page (base_url?) even if i hard code <a href="#"> into the &tplParentRow...is there any way to disable this link so that it doesn't go anywhere?
    Cheers
    J

    This question has been answered by donshakespeare. See the first response.

      www.9thwave.co.uk
         WEB | DESIGN | PRINT
    • discuss.answer
      • 42562
      • 1,145 Posts
      I use JavaScript to disable it.
      One way is to directly do this
      <a href="javascript:;"></a>

      Mobile devices should allow JS
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 36549
        • 572 Posts
        @donshakespeare - Thank you so much that has solved my issue smiley
          www.9thwave.co.uk
             WEB | DESIGN | PRINT
          • 42562
          • 1,145 Posts
          Glad it helped.
            TinymceWrapper: Complete back/frontend content solution.
            Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
            5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.