I'm working on incorporating a template I created using HTML and CSS into Joomla! 4. One specific component is this navbar:
<nav class="navbar navbar-default navbar-expand-md navbar-light bg-light sticky-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#mainNavbar">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<ul class="navbar-nav mr-auto navbar-collapse collapse" id="mainNavbar">
<li class="nav-item">
<a class="nav-link"></a>
</li>
</ul>
</div>
</nav>
Now, I want to swap out the list with this:
<div id="navbar-left">
<jdoc:include type="modules" name="menu-left" style="none"/>
</div>
My question is, how can I ensure that the new list inherits the same classes? Specifically, these classes: navbar-nav mr-auto navbar-collapse collapse.
I've attempted to place the new list within a div with a designated id and apply styles directly to it, but I'm not convinced this is the optimal approach!