I have integrated a Bootstrap 4 theme into my Wordpress website, which you can find at this link: . The challenge I am facing is with the Bootstrap 4 navbar and third-level child menus, as they are not natively supported by Bootstrap 4. To address this issue, I have applied custom CSS to my Bootstrap 4 setup.
You can view the custom CSS code that I used in my implementation here:
.navbar-nav li:hover > ul.dropdown-menu {
display: block;
}
.dropdown-submenu {
position:relative;
}
.dropdown-submenu>.dropdown-menu {
top: 0;
left: 100%;
margin-top:-6px;
}
/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
text-decoration: underline;
transform: rotate(-90deg);
}
Currently, I am facing an issue where the child menus appear below each parent menu item:
https://i.sstatic.net/tyPio.jpg
In the image above, "Exact" should actually be displayed to the right of the parent menu (similar to the codeply example). Can someone guide me on what modifications I need to make to achieve the correct layout? I have been struggling with this for a week now.
Thank you!
grid