This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
dragonxt28397
Hi, I am trying to figure out how to set my own class in pre-generated "ul li a" of the menu component. I currently have something like this:
{% if menu.menuItems %}
<ul class="navbar-nav navbar-nav-right">
{% partial menu ~ "::items" items=menu.menuItems %}
</ul>
{% endif %}
and it gives me this in front-end:
<ul class="navbar-nav navbar-nav-right">
<li role="presentation" class="active nav-item-child nav-item-hover">
<a href="http://localhost/name/home-page" >
Start
</a>
</li>
</ul>
but still I don't know how to style, the li and a elements using my own class... I don't want to modify original plugin code to do it, this workaround might be problematic if the plugin will download update. Sorry for my English
Last updated
dragonxt28397
this October's community sucks. I figured this out on my own. Worst community I have encountered in open source cms...
1-3 of 3