• Resolved ellismr

    (@ellismr)


    I’m working on a website at [Non-WordPress website redacted for the second time] When i minimize the browser window, the main menu collapses properly, but does not expand when clicked on. Any help would be greatly appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Make sure you link a WordPress website

    Thread Starter ellismr

    (@ellismr)

    im sorry, the website link should be https://www.sandyhookfoundation.com/wp/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The ID of the menu trigger button should be “menu”, try adding that. E.g.:

    <h4 id="menu">Menu</h4>

    Thread Starter ellismr

    (@ellismr)

    Ok, i added the line to the header.php file. It seems to have added the word “Menu” to the upper left corner of the page, but didn’t seem to fix my problem. Also, there is a menu button that now appears in the top left corner of the menu itself. If you look at the site you can see what is happening now.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I cannot explain how changing this:

    <h4 id="mainnav-icon">Menu</h4>

    To this:

    <h4 id="menu">Menu</h4>

    Has caused what you are experiencing.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I misunderstood your technical knowledge when I found the issue. I thought you had modified the JavaScript of your menu. Now I assume you hired someone to do some work for you? Have you tried contacting that person?

    Thread Starter ellismr

    (@ellismr)

    No i modified this theme myself. I’m new to wordpress but i was able to figure a lot out on my own, but this has me stumped. My original problem was the menu button in the top left of the main menu. I couldn’t get rid of it, so i asked in this forum and someone suggested adding this code to fix it:

    <style>
    #navi-wrap .nav-toggle{
    display:none;
    }
    </style>

    when i added it, the menu button disappeared, but the menu wouldn’t expand when clicked. So i removed that code and added the line you sent, but the menu still won’t expand.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Menu collapses but doesn't expand’ is closed to new replies.