• Resolved dinkybluebug

    (@dinkybluebug)


    Im using the Cubic theme, and currently when users select the menu button, the screen changes to show menu items, and then widget items underneath.

    Is there anyway to show widget items first, with the menu items then showing underneath? ie. the opposite of what exists currently?

    Had a look at the code, but got a bit lost. Can anyone push me in the right direction?

Viewing 3 replies - 1 through 3 (of 3 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Since Cubic is a child theme of Boardwalk, making changes to the theme files can be a bit tricky, and remember that you can’t make a child theme of a child (grandchild).

    Luckily I think this can be done in this case reasonably easily though. What you would want to do is to copy the sidebar.php file from Boardwalk into the root level of your Cubic theme. Then you would edit that copied file and put the sidebar section above the nav section. In that file, take this section

    <?php if ( has_nav_menu( 'primary' ) ) : ?>
    			<nav id="site-navigation" class="main-navigation" role="navigation">
    				<h1 class="menu-title"><?php _e( 'Menu', 'boardwalk' ); ?></h1>
    				<?php
    					wp_nav_menu( array(
    						'theme_location'  => 'primary',
    						'container_class' => 'menu-primary',
    						'menu_class'      => 'clear',
    					) );
    				?>
    			</nav><!-- #site-navigation -->

    and make a blank line and put it right before

    </div><!-- .sidebar-content -->

    Moderator Kathryn Presner

    (@zoonini)

    Keep in mind that if you make any changes to Cubic you’ll lose them every time you update it to the latest version, so be sure to keep a backup copy before update. You can also explore the plugin method of making a grandchild theme:

    https://docs.appthemes.com/tutorials/creating-grandchild-themes/

    Thread Starter dinkybluebug

    (@dinkybluebug)

    Yay! Sacredpath it worked – well you knew that, ha ha

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change order of menu / show widget first’ is closed to new replies.