Use span_1_of_1 until span_1_of_8. You can combine it like this. It might require enym plugin,…
Add Description under Menu Items in Total Theme
function be_header_menu_desc( $item_output, $item, $depth, $args ) {
if ( 'main_menu' == $args->theme_location && ! $depth && $item->description ) {
$item_output = str_replace( '</a>', '<span class="menu-item-desc">' . $item->description . '</span></a>', $item_output );
}
return $item_output;
}
add_filter( 'walker_nav_menu_start_el', 'be_header_menu_desc', 10, 4 );
Dieser Beitrag hat 0 Kommentare