Closed Halkawt97 closed 7 years ago
Hey,
Can you explain where you're putting this code? Generally it would go in somewhere like the header.php
file for this kind of navbar.
Also did you include the wp_bootstrap_navwalker.php
file?
Delete the surrounding div that contains the code,
<div id="main-nav" class="collapse navbar-collapse">
Bootstrap nav walker automatically adds another div without telling you, so you will end up with two different divs in your html with the same classes, which will cause the mobile menu to not work. Make sure to remove the closing div tag obviously.
For those of you having this issue, before changing it, right click and view source and check out your nav code, you will 100% see two divs with the same class names, like this,
`
There has been no update from OP for a long time stating if they found the issue of if a provided solution worked. Closed this issue as inactive.
Here is my code, and I do not know why it does not work :(
can anyone tell me where is the issue ? The URL is auis-env.org