Support » Plugin: Bellows Accordion Menu » How to put bellows menu into default theme slide out menu

  • Resolved anoctave


    The Latte theme has a slide out menu that you activate with a click. However, in the menu itself, submenus open on hover rather than click. I downloaded the Bellows menu to give me that click feature. I must be doing something wrong. In terms of location I selected “Primary Menu” which I hoped would initiate that feature, but nothing happened. As far as I can see, there is no place to put a shortcode.

    Is there any solution? Right now, I have a simple menu with no submenus in the slide out menu, and I’ve put the bellows menu in the sidebar of the inside pages. The problem with this is that the inside pages have both the slide out menu and the sidebar menu.

    Here is the website

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author sevenspark


    Hi anoctave,

    Bellows provides you an accordion menu component. To add that component to your site, you need to insert it via Widget (if the space you want to add the menu to is widgetized), Shortcode (if the space you want to add it to has a setting or editor where shortcodes can be added), or PHP (to be added in a template file or via a hook).

    So it’s up to your theme to provide a way to add content to that panel – and it sounds like your theme doesn’t. So you’d probably need to edit your theme’s PHP template to replace the theme’s menu with Bellows.

    In short, I don’t think your theme will let you do what you want to do without some custom PHP coding. The good news is, all themes are open source, so you should be able to find where the theme defines the side panel in the theme templates and replace that with the bellows() PHP function.



    Thread Starter anoctave


    Thank you for this information. I know exactly where the php code is – it’s between the <nav></nav>. What I don’t know is the code I need to put in. What I don’t want to do is mess up the fly-out structure.

    Here is the nav code:

    <?php if( isset($latte_menu_display) && $latte_menu_display != 1 ) : ?>
    		<nav class="pmenu pmenu-vertical pmenu-left" id="pmenu">
    			<h3 id="hideLeftPush"><?php _e( 'Menu', 'latte' ); ?> <i class="fa fa-arrow-right"></i></h3>
    				'theme_location' => 'primary',
    				'menu' => __( 'Primary Menu', 'latte' ),
    				'fallback_cb' => 'latte_new_setup',
    				'items_wrap' => '<ul class="latte-push-menu">%3$s</ul>'
    		<a id="showLeftPush" class="fa fa-bars"></a>
    	<?php endif; ?>

    Could you tell me how to change this code to include the Bellows plugin? I would so appreciate it.

    Thread Starter anoctave


    Ok, I got it. Slow learner. I put the code into the nav php and got the bellows menu along with a repeat of the menu in its old form. So I got brave and eliminated the theme developer’s nav code and voila! only the bellows menu.

    Plugin Author sevenspark


    Glad to hear you got it sorted, anoctave 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to put bellows menu into default theme slide out menu’ is closed to new replies.