• I’ve added add_theme_support( ‘menus’ ); to the functions.php file to enable custom menus.

    Now I need to add the following to my theme:

    <?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘container_class’ => ‘menu-header’ ) ); ?>

    My question is, where do I add it to?
    Ihave two sidebars on the right-hand side, I’m looking for this to be added to the left-sidebar, could someone please have a quick look and let me know where the code should go? The URL is whatisthatallabout.com

    Thanks in advance!!

    Jason

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Jason,

    You could get away using the custom menu widget.
    https://en.support.wordpress.com/widgets/custom-menu-widget/

    Otherwise you will have to show your theme’s code for an accurate response. If the theme is coded correctly it should be on sidebar.php. Try adding the menu code bellow <div id=”sidebar”>.

    Kind Regards!

    Thread Starter Jasong959

    (@jasong959)

    Hi mate,

    Thanks a lot for your reply. I posted this question on several other forums yesterday and didn’t even get a single response from any of them, so it’s greatly appreciated!

    To be honest I’m not sure if that, or the code I posted is what I need. So perhaps if tell I you what it is I’m trying to achieve, you could point me in the right driection.

    If you visit https://whatisthatallabout.com/ you’ll see that there’s a social networking category, with a sub-category named Twitter. I’m aiming to have the sub-categories hidden, but visible when the user hovers the mouse over the category. What’s the easiest way to do that?

    Thanks again!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding A Custom Menu To A Theme?’ is closed to new replies.