Hi kmarat,
Can you go into more detail with what the errors are(copy and paste them below)? so i can get an idea of what to look out for.
cheers
James
Thread Starter
kmarat
(@kmarat)
Hi James,
thanks for your reply.
hoh, i dont have any error now… :/ maybe because of enabling Admin Walker? the error was something like “trasfer#2 not an array”
it seams now JC Submenu populating my subcats, i can see them in my menu that is still broken, i think css problem. can you advise me please if i have to modify on plugin side or theme’s one?
here is the part from header.php:
<?php
wp_nav_menu( array(
‘theme_location’ => ‘primary’,
‘menu_class’ => ‘nav navbar-nav’,
‘depth’ =>4,
‘container’ => false,
‘fallback_cb’ => false,
‘walker’ => new JC_Submenu_Nav_Walker() ) );
?>
another question, i can see some subcats on my site but there are absent in admin>appearance>menu… i cant manage them as before so?
thank you for your assistance!
marat
I currently know that if you try and use JC Submenu without having a menu created in the admin area it will cause problems, this currently being fixed.
Because you have replaced the themes walker with the plugins walker you will have lost what ever the theme did to its menu to output it. I am currently developing a feature were you do not need to replace the walker.
If you want to try it edit the edit line 27:
var $public_walker = true;
and replace with
var $public_walker = false;
And replace the walker in your code back to the themes walker. This currently doesn’t work well when using the JC Submenu split/section widgets.
Otherwise you will need to use the plugins filters to modify the classes output.
Documentation can be found here: http://jamescollings.co.uk/jc-submenu/resources/
Main filters for adding classes:
- jcs/menu_item_args ($args, $item)
- jcs/menu_level_class ($classes, $depth, $args)