• This is my first WordPress update and I didn’t fare too badly. Thank goodness I learned about child themes. You must brace for a lot of questions after these updates!

    My main menu is now displaying as a menu with an unordered list directly below it.

    My preferred layout is to have one column with the sidebar on the right but I just have one wide column right now with sidebar content below it. I tried changing this in the “Customize” view and it didn’t do anything with the child theme active.

    Both problems disappear when I activate the parent theme but reappear when I activate the child theme. I use the Child Theme Configurator plugin if that’s of any relevance.

    Any idea how to fix these issues?

    Thank you!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter captaincurls

    (@captaincurls)

    It’s the mobile menu that’s showing in addition to the main menu for some reason. I got the bullet list to go away by adding

    .mobile-nav-location {
        display: none !important;
    }

    That hid the bullet list and brought my sidebar up where it’s supposed to be. But now I’ve lost my mobile menu completely. I’ll keep plugging away.

    Hi,
    have you made any changes in your header.php file in your child theme? Does this happen in the parent theme also (you can check via Customizer)?

    Hi,
    I got exactly the same issues since recent wp update, especially my sidebar disappeared. I didn’t change anything in my header.php. If I switch to parent theme, everything is fine.

    https://www.matthias-elbert.de

    Thread Starter captaincurls

    (@captaincurls)

    My parent theme displays correctly. I haven’t had time to check my header.php file but I can mess around with that tomorrow.

    Hi,
    please do copy the parent header.php and re apply any changes you made in your child theme.

    Thread Starter captaincurls

    (@captaincurls)

    I copied the parent header.php as you suggested and that didn’t get me any farther along than I was on my second post. The menu and sidebar are displaying correctly but I still don’t have a mobile menu. I tried switching to various block, inline, etc. versions of this code and erasing child-theme changes on it completely but I still don’t have a mobile menu.

    .mobile-nav-location {
        display: none !important;
    }

    Any other ideas? Thank you?

    @captaincurls @whoismatthias
    Do you have a mobile menu selected from Appearance->Menus?
    Can you send me a list of the files you have changed in your child theme?

    Thread Starter captaincurls

    (@captaincurls)

    I found it. It was the footer.php file. There wasn’t a comment but I’m hit or miss about adding those, so I don’t know if I removed these snippets of code or if something changed in the update. Anyway, these were completely missing in my child file. When I deleted the child file, everything worked. The only change I know I had made was to add a copyright notice, so that was easy to add back in.

    <nav class="nav">
    							<?php wp_nav_menu( array(
    								'theme_location' => 'footer_menu',
    								'container'      => '',
    								'menu_id'        => '',
    								'menu_class'     => 'navigation',
    								'depth'          => 1
    							) ); ?>
    						</nav>

    AND

    <div class="navigation-mobile-wrap">
    	<a href="#nav-dismiss" class="navigation-mobile-dismiss">
    		<?php esc_html_e( 'Close Menu', 'olsen-light' ); ?>
    	</a>
    	<ul class="navigation-mobile"></ul>
    </div>

    Thanks for getting me pointed in the right direction!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Main Menu & Layout Wrong Since WP Update’ is closed to new replies.