First of thanks for the template. It’s a great clean template to start building on.
I would like to add a container div around the Dropdown menu ul so I can stretch it to full page width.
I figured in wp_bootstrap_navwalker.php by changing line 24
$output .= “\n$indent<ul role=\”menu\” class=\” dropdown-menu\”>\n”;
$output .= “\n$indent<div class=\”dropdown-container\”>\n$indent<ul role=\”menu\” class=\” dropdown-menu\”>\n”;
It works but the dropdown-container div is not getting closed off. I can’t figure out the code where you close the html tags since the ul and li are getting closed. I have limited knowledge of PHP so your assistance would be much appreciated.
Thanks in advance.
- The topic ‘Adding a container Div around dropdown menu’ is closed to new replies.