Replies: 1 comment
-
Thanks. I think it's more sustainable to direct this to https://github.com/AlexWebLab/bootstrap-5-wordpress-navbar-walker. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Recently, I had to add the description of Wordpress native menu items in the nav walker, I think this should be included by default in bootScore, to avoid having to create a new walker. Just a thought! :)
$item_output = $args->before; $item_output .= '<a' . $attributes . '>'; $item_output .= $args->link_before . apply_filters('the_title', $item->title, $item->ID) . $args->link_after; if (!empty($item->description)) { $item_output .= '<span class="d-block menu-item-description">' . esc_html($item->description) . '</span>'; } $item_output .= '</a>'; $item_output .= $args->after;
Beta Was this translation helpful? Give feedback.
All reactions