1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WordPress menu problem on mobile devices

Discussion in 'HTML & Website Design' started by vasilelazar, Aug 14, 2016.

  1. #1
    Hi ,
    it's hard to explain my problem but i will try to be very explicit :
    My website is http://candleonlinestore.co.uk
    on mobile devices there is a button "Menu " .When you click this button the menu will expand showing primary and sub-menus .
    The issue is that the sub-menu doesn't load on first tap on the link, but just the second tap will open the link .
    Is there someone who knows what the problem could be ?

    Thank you very much
     
    vasilelazar, Aug 14, 2016 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Because I am not going to dig through two-and-a-half MEGABytes of scripts, almost 500 KBytes of stylesheets, not to mention all the two bag, coyote ugly inlined and embedded style and script elements, I make as a first prior guess that your script controlling the menu button is loaded and evaluated before there is a DOM to work against. The first touch re-initializes the event handler and the second touch is actually handled.

    There is a reason a lot of people put their initialization scripts immediately before closing the body tag. It's not a good reason, but it works. The better way, the unobtrusive way is to have a script with an onload event handler to loop through a list of init functions.

    gary
     
    kk5st, Aug 14, 2016 IP
  3. vasilelazar

    vasilelazar Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Thank you for your response .
    I will try to dig out even if I don't know where to start .
    If someone else has an opinion ill be very thankful .
    Cheers guys
     
    vasilelazar, Aug 15, 2016 IP
  4. Puntocom81

    Puntocom81 Banned

    Messages:
    80
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    35
    #4
    The problem is Wordpress (or turdpress). This code for the menu is insane:
    
    <nav id="http://candleonlinestore.co.uk/candle-shop">Candle shop</a></li><li id="http://candleonlinestore.co.uk/product-category/carved-candles">Carved candles</a><ul class="http://candleonlinestore.co.uk/product-category/carved-candles/wedding-candles">Wdding Canldes</a></li><li id="http://candleonlinestore.co.uk/product-category/carved-candles">Christening candles</a></li><li id="http://candleonlinestore.co.uk/product-category/carved-candles/large-carved-candles">Large decorative candles</a></li><li id="http://candleonlinestore.co.uk/product-category/carved-candles/medium-carved-candles">Medium decorative candles</a></li><li id="http://candleonlinestore.co.uk/product-category/carved-candles/small-carved-candles">Small decorative candles</a></li><li id="http://candleonlinestore.co.uk/product-category/carved-candles/large-floral-candles">Large floral candles</a></li><li id="http://candleonlinestore.co.uk/product-category/carved-candles/small-floral-candles">Small floral candles</a></li></ul></li><li id="http://candleonlinestore.co.uk/product-category/candles">Scented Candles &#038; Accessories</a><ul class="http://candleonlinestore.co.uk/product-category/candles/jar-candles">Jar candles</a></li></ul></li></ul></nav><!-- /#navigation -->
    
    Code (markup):
    Where it should be something like:
    
    <ul id="mainMenu">
      <li><a href="#">...</a></li>
      <li><a href="#">...</a></li>
      <li><a href="#">...</a></li>
       ...
    </ul>
    
    Code (markup):
    Please, read this:

    http://cutcodedown.com/article/progressive_enhancement
    http://cutcodedown.com/article/HTML_CSS_and_JS_frameworks
     
    Puntocom81, Aug 15, 2016 IP
  5. Hazi Rabby

    Hazi Rabby Member

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    33
    #5
    please make it responsive... if you want you can get more help from there...

    https://www.fiverr.com/mdrakibul185/fix-any-wordpress-bug
     
    Hazi Rabby, Aug 21, 2016 IP
  6. vasilelazar

    vasilelazar Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    It is responsive.
     
    vasilelazar, Oct 17, 2016 IP
  7. templatelinksale

    templatelinksale Active Member

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #7
    Please PM me your wp admin login and FTP details, i will fix it. Thank you
     
    templatelinksale, Oct 20, 2016 IP