• Resolved Jayesh Patel (inCreativeWeb)

    (@jayeshincreativewebcom)


    Hello

    I have used below file.

    A custom WordPress nav walker class to fully implement the Bootstrap 3.0+ navigation style in a custom theme using the WordPress built in menu manager.

    https://github.com/twittem/wp-bootstrap-navwalker

    // In menu code here
    <?php
    if ( has_nav_menu( ‘primary’ ) ) {
    wp_nav_menu( array(
    ‘theme_location’ => ‘primary’,
    ‘container’ => false,
    ‘menu_class’ => ‘nav navbar-nav navbar-main’,
    ‘fallback_cb’ => ‘wp_page_menu’,
    ‘walker’ => new wp_bootstrap_navwalker()
    )
    );
    }
    ?>

    1) I have remove “walker” > plugin working fine 🙂
    2) But i need “walker” class > not working plugin 🙁

    Please help us.

    Regards,
    Jayesh

    https://wordpress.org/plugins/jc-submenu/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author jcollings

    (@jcollings)

    Hi Jayesh,

    I have just released version 0.8 of jc submenu which gives you two options to fix the plugin conflicts.

    1. you can try adding the classes to your menu using JC Submenu filters which can be found here: http://jamescollings.co.uk/docs/v1/jc-submenu/actions-filters/jcsitem_classes/

    or

    2. You can try using the new beta function of JC Submenu which doesn’t use a walker to output the nav menu, which will allow you to use both these plugins at once (fingers crossed).

    <?php
    
    // disable jc submenu custom walker
    add_filter('jcs/enable_public_walker', 'jc_disable_public_walker');
    function jc_disable_public_walker($default){
    	return false;
    }
    ?>

    let me know how you get on.

    James

    Hi James,

    I have the same problem as Jayesh : how to use jc submenu and a custom menu walker (from another plugin or myself) at once.
    The two options you gave above do not work for me.

    For now I found a workaround, but it would be a useful feature definitely.

    Regards.

    Plugin Author jcollings

    (@jcollings)

    Hi Robono,

    Thanks for letting me know that this filter didnt work, i had tested it from other plugins, but not from within the theme functions file.

    Version 0.8.2 has been pushed and allows you now to disable the use of JC Submenus Nav Walker and instead it will hook into the one you are using and display the dynamic menu items (it has been tested with “wp_bootstrap_navwalker”).

    To disable JC Submenu’s default custom walker put the following code into your themes functions.php file.

    <?php
    
    // disable jc submenu custom walker
    add_filter('jcs/enable_public_walker', 'jc_disable_public_walker');
    function jc_disable_public_walker($default){
    	return false;
    }
    ?>

    Let me know if this works for you.

    James

    Great ! Now it seems to work like a charm.
    Tested with wp_bootstrap_navwalker and a theme custom walker.

    Thank you very much for your great job.

    p10design

    (@p10design)

    This solution also worked for me. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not working with "wp_bootstrap_navwalker"’ is closed to new replies.