• I’ve created a menu on my site https://www.girlsrite.com, and the page “Workshops” should have 3 children/submenus. I’ve added them all to the main menu, then I’ve dragged the 3 ‘children’ to line up under and indented the parent. It looks perfect, and when I go to save it, they pop back over to the left, into the default position.
    So, it should look like this
    Workshops
    (indented)child
    (indented)child
    (indented)child
    but when I save, it looks like this
    Workshops
    child
    child
    child
    Any suggestions? This was working months ago, and it might have something to do with the theme I’m using- Headway Themes… Maybe a glitch?
    Help- my menu looks awful!
    Jill pond
    [email protected]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Maybe it’s related to the “depth” parameter of your menu. Try opening your “header.php” (the one inside your themes/YOURTHEME) folder and find a line of code like this:

    <?php wp_nav_menu(array(

    Check if there is a parameter on the array declaring the “depth” of the menu, it should be something like this:

    <?php wp_nav_menu(array('theme_location' => 'headerNav', 'container' => false, 'depth' => 2, 'fallback_cb' => false, 'menu_class' => 'headerNav')); ?>

    Plain text to bold the parameter that matters (the others are only samples):

    <?php wp_nav_menu(array(‘theme_location’ => ‘headerNav’, ‘container’ => false, ‘depth’ => 2, ‘fallback_cb’ => false, ‘menu_class’ => ‘headerNav’)); ?>

    Even if this works, you’ll probably need to make your menu compatible with dropdowns trough some CSS, but that’s another point. Give it a try…

    Thread Starter jillpond

    (@jillpond)

    I’m very new at this so bear with me.
    What folder? The one installed on my hard drive?

    Yes, but if you’re really that “raw” on doing this i don’t know if it would be the best choice to deal with those files.

    Always have one thing in mind: Doesn’t matter what you do, the first thing you do is BACKUP ok? So, if you’re gonna change a file, backup it first (copy it and rename it with another reference name, in this case i would call it header-backup083012.php).

    Now, yes, you should go to your local file (the one on your hard drive), change it and then upload it to the server trough your FTP program of choice.

    You’ll find the file i’ve point out at the wp-content/themes/YOURTHEME/header.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sub Menu Problem’ is closed to new replies.