• Resolved ap2016

    (@ap2016)


    Hi all,

    And thanks in advanced.

    I have a problem with the mobile navigation menu – it’s not collapsing but instead showing menu and does nothing else. I have download the TS package and uploaded the navigation php file again but this doesn’t seem to have worked after emptying the caches.

    Any suggestions?

    Thanks

    A

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter ap2016

    (@ap2016)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try deactivating your ‘Contact Form Maker’ plugin.

    Thread Starter ap2016

    (@ap2016)

    Hiya,

    Nope, that hasn’t worked.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Weird, what about other plugins? Something is loading the the Google Maps library, which is causing a JavaScript error. As the mobile menu is based on JavaScript, the JavaScript error from the maps is a likely cause for the issue you’re seeing.

    Thread Starter ap2016

    (@ap2016)

    I’ve deactivated the other plugins that aren’t necessarily needed and that hasn’t worked. The maps on the contact page is an iframe not a plugin. What tool are you using to know this info ?? ?

    Thanks

    Alex.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Chrome’s developer toolbar (F12 on windows).
    I re-checked your page and the map error is no longer showing so that rules that out. Your theme however isn’t loading its JavaScript file: https://bedfordguitarteacher.club/wp-content/themes/twentyseventeen/assets/js/global.js

    That’s the issue.

    Thread Starter ap2016

    (@ap2016)

    That’s strange, the assets folder wasn’t there at all, so I’ve uploaded it, and it’s still not functioning, do I need to connected from a php somewhere?

    Thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The link above (https://bedfordguitarteacher.club/wp-content/themes/twentyseventeen/assets/js/global.js) wouldn’t have worked if the assets folder was missing – perhaps you were in a similar but different directory?

    The JavaScript file should load in automatically, so there’s nothing you should have to do extra. Are you aware of any modifications to the theme?

    Thread Starter ap2016

    (@ap2016)

    Oh ok, fair enough.

    The only mod I have made is taking the ‘powered by wordpress’ out at the bottom, not by changing the ‘info to none’, but by changing the text itself in the php file. Other than that just the standard html css developments.

    Thread Starter ap2016

    (@ap2016)

    Also, the fonts colour has changed from blue to black too, which is odd as I haven’t changed the CSS for this.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you know if you set up a Child Theme structure?

    Thread Starter ap2016

    (@ap2016)

    I haven’t done so, nope. It’s a dead simple site.

    Thread Starter ap2016

    (@ap2016)

    I found the problem and what a tit…

    When I changed the information ‘powered by wordpress’ which is located in the siteinfo.php file, I hadn’t done so correctly, now i’ve just deleted the entired href tag within the div and the menu works fine now, why would that effect the menu though??

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Maybe you removed the <?php wp_footer(); ?> line?

    See: https://codex.www.ads-software.com/Function_Reference/wp_footer

    
     /* Always have wp_footer() just before the closing </body>
        * tag of your theme, or you will break many plugins, which
        * generally use this hook to reference JavaScript files.
        */
    
    Thread Starter ap2016

    (@ap2016)

    Thanks for your help, much appreciated.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Twenty Seventeen mobile menu not working.’ is closed to new replies.