Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Bootstrap 4 dropdown menus for WordPress via custom walker.
Bootstrap 4 dropdown menus for WordPress via custom walker.
This custom nav walker class allows theme developers to output Bootstrap 4 (and 5) navigation markup directly from the WordPress menu manager. It works with standard wp_nav_menu() calls, so no extra configuration is needed beyond including the class.
sr-only class, disabled links, dropdown headers, dropdown dividers, and plain dropdown text.class-wp-bootstrap-navwalker.php file in your theme and pass a new instance to the wp_nav_menu() arguments. Can be set as the default walker for all menus using a filter.The walker is fully compliant with WordPress.org theme review guidelines and requires no modifications for submission. It does not include Bootstrap CSS or JS; those must be added separately.
No comments yet. Be the first to start the conversation!