I need help figuring out how to modify the main navigation menu. I am using the Business Zita template and have Elementor Pro. I have troubleshooted for hours unsuccessfully, have watched youtube videos and read all sorts of documents and none of it has helped resolve this issue. I have also contacted support for both Elementor and Zita, however, it is taking a while to reply. I am completely unable to modify this menu, not just the font, but things as basic as the spacing between the words. Please help!!
Thank you in advance for your help.
]]>Photo linked here for reference: https://ibb.co/gZYD5DN
]]>Now I would like to add two more CPT’s automatically to my menu to different parent items on the same website: “poezen” and “katers”. How do I blend in these variables in the code below?
poezen-parent-item
poezen-post-type
katers-parent-item
katers-post-type
Thank you for the help.
add_filter( 'wp_get_nav_menu_items', 'my_theme_nestjes_menu_filter',10, 3 );
function my_theme_nestjes_menu_filter( $items, $menu, $args ) {
$child_items = array();
$menu_order = count($items);
$parent_item_id = 0;
foreach ( $items as $item ) {
if ( in_array('nestjes-parent-item', $item->classes) ){
$parent_item_id = $item->ID;
}
}
if($parent_item_id > 0){
foreach ( get_posts( 'post_type=nestjes-post-type&numberposts=-1' ) as $post ) {
$post->menu_item_parent = $parent_item_id;
$post->post_type = 'nav_menu_item';
$post->object = 'custom';
$post->type = 'custom';
$post->menu_order = ++$menu_order;
$post->title = $post->post_title;
$post->url = get_permalink( $post->ID );
array_push($child_items, $post);
}
}
return array_merge( $items, $child_items );
}
]]>Along with the Theme Maine menu in the header, i wan to add additional Menu strip above the Main menu.
Ho to go about it ?
I am from a Non IT background with zero knowledge in Coding, so it would be really great if someone can suggest a good plugin to get this done.
Thanks.
Regards,
OP Jha