• Putting a customised menu into my website doesn’t work and the plugin author says it is because of the theme, Gridiculous. The author says:

    It hooks into the wp_nav_menu_args filter – which is applied by wp_nav_menu(), the function used to create any menu – and if a menu has been allocated to the theme’s “primary” location (which is a perfectly reasonable thing to do), and the required depth of the menu is not set to 1, then the theme substitutes its own Walker (code that determines what it displayed and how).
    The apparent intention is to provide items that have sub-items with some sort of indicator (I haven’t investigated far enough to determine exactly what it does), but the problem is that it wipes out CMW’s own custom Walker, so you never reach any of CMW’s filter processing.

    Basically, it doesn’t only affect CMW, but any other plugin that provides similar manipulation of custom menus (using wp_nav_menu()).

    The full discussion about it is here: https://ww.wp.xz.cn/support/topic/menu-on-assist-not-same-as-on-website?replies=5#post-6095526

    Is there a way to be able to use this plugin with Gridiculous?
    Thanks,
    Rachel

Viewing 1 replies (of 1 total)
  • Thread Starter theapehouse

    (@theapehouse)

    The plugin author has since added this post:

    You may wish to convey this to the theme authors (or bring this forum thread to their notice) :

    I believe that all they would need to do is add an extra condition to the first line of their bavotasan_nav_menu_args() function, such that…

    if ( 1 !== $args[ ‘depth’ ] && has_nav_menu( ‘primary’ ) )

    becomes…

    if ( 1 !== $args[ ‘depth’ ] && has_nav_menu( ‘primary’ ) && ‘primary’ == $args[ ‘theme_location’ ] )

    This works for me; it restricts their customised Walker to the one specific location that their theme provides, and leaves all other menus, including any CMW instance, alone. Just a thought.

Viewing 1 replies (of 1 total)

The topic ‘[Theme: Gridiculous] Custom Menu Wizard plugin issues’ is closed to new replies.