-
AuthorPosts
-
March 11, 2014 at 5:39 pm #235696
Was hoping to use the JC Submenu – http://jamescollings.co.uk/jc-submenu/ – but cannot seem to get it to work with Enfold and to auto populate menus from Custom Post Types or Blog Posts
Any help is massively appreciated
March 12, 2014 at 10:42 am #236218No-one has tried JC Submenu?
March 13, 2014 at 4:03 am #236650Hi,
Seems to be modifiable for Enfold, you can do it yourself if you know some coding, or you can try hiring a freelance developer to help you out.
Regards,
JosueMarch 13, 2014 at 9:57 am #236773Ok – so this looks like the mod that needs to be done
http://jamescollings.co.uk/jc-submenu/resources/installation/
IN which file does Enfold have it’s own menu walker? I am happy to touch the code myself, but have no idea was to the structure of Enfold
March 13, 2014 at 8:44 pm #237171Hey!
Here are all the iterances of wp_nav_menu in Enfold:
Searching 756 files for "wp_nav_menu" /enfold/footer.php: 113 ); 114 115: wp_nav_menu($args); 116 echo "</nav>"; 117 ?> /enfold/functions-enfold.php: 54 { 55 //first append search item to main menu 56: add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 ); 57 add_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 10, 2 ); 58 /enfold/config-woocommerce/config.php: 273 274 # 275: # create the shop navigation with account links, as well as cart and checkout, called as fallback function by the wp_nav_menu function in header.php 276 # 277 function avia_shop_nav($args) /enfold/framework/php/class-megamenu.php: 39 40 //exchange arguments and tell menu to use the avia walker for front end rendering 41: add_filter('wp_nav_menu_args', array(&$this,'modify_arguments'), 100); 42 43 //exchange argument for backend menu walker .. 365 */ 366 function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0 ) { 367: global $_wp_nav_menu_max_depth; 368: $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; 369 370 $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; /enfold/includes/helper-conditional-megamenu.php: 20 add_action('avia_mega_menu_option_fields', array(&$this,'output_conditional_menu_options'), 10, 4); 21 22: add_filter( 'wp_nav_menu_objects', array(&$this,'apply_conditional_rules'), 10, 1); 23 } 24 /enfold/includes/helper-main-menu.php: 51 ); 52 53: $nav = wp_nav_menu($args); 54 } 55 .. 123 ); 124 125: wp_nav_menu($args); 126 127 if($headerS['header_social'] == 'icon_active_main' && empty($headerS['bottom_menu'])) echo $icons; 11 matches across 6 files
You need to pass that JC extra argument there.
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.