• Resolved ryanmetin

    (@ryanmetin)


    My mobile menu sidebar is creating a div.sidr-inner with the text *undefined*.

    I’ve found the JavaScript that is creating it in Sidr.

    How can I fix this?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, the sidr script is the script to display the mobile menu ??
    Check the documentation to solve the problem: https://docs.oceanwp.org/article/457-mobile-menu-shows-undefined-word

    Thread Starter ryanmetin

    (@ryanmetin)

    I have 3 social links in my header with menu social enabled, no topbar, and I’m not using Canvas. The social links are there and are working.

    The undefined is in the middle div.sidr-inner, between the menu and the social menu.

    • This reply was modified 7 years, 3 months ago by ryanmetin.
    Theme Author oceanwp

    (@oceanwp)

    Hi, I think the issue is the top bar menu, go to Appearance > Menus and check if Top Bar in Menu Settings is not checked.

    Thread Starter ryanmetin

    (@ryanmetin)

    Ok, that got rid of the undefined but now I have empty space above my header. Why does it need the top bar?

    Theme Author oceanwp

    (@oceanwp)

    What you mean empty space? Your site look good on my side.

    Thread Starter ryanmetin

    (@ryanmetin)

    I put display: none; on the top bar.

    Thanks for the help.

    Thread Starter ryanmetin

    (@ryanmetin)

    Should I submit an issue for this on GitHub? It seems odd that the mobile menu needs the top bar enabled.

    Theme Author oceanwp

    (@oceanwp)

    You can disable the top bar if you don’t use it, it is just that you need to uncheck the Top Bar menu location if you don’t have a top bar. Look at this demo, there is no top bar: https://simple.oceanwp.org/

    Thread Starter ryanmetin

    (@ryanmetin)

    Ah, alright, I found my issue. In Menu Locations, the Top Bar selection was empty – just a blank option – instead of -- Select --. So it looked like it wasn’t set, but it was… Maybe I changed a menu name at some point?

    Idk, either way, thanks again for the help.

    Theme Author oceanwp

    (@oceanwp)

    Yes that was the issue about the undefined word ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Text undefined in Mobile Menu’ is closed to new replies.