Hi
I am going to start learning couchcms properly and understand it etc by creating a test site, I have created the home page and contact page and using the index.php as a nested page so can add/edit menu names and links and is working but have one quick question, is it possible to add a css class to the <li> and <a> tag
the menu with no cms tags added is below
The code with the cms tags is below
The menu.html coding in the snippets folder is below
I am going to start learning couchcms properly and understand it etc by creating a test site, I have created the home page and contact page and using the index.php as a nested page so can add/edit menu names and links and is working but have one quick question, is it possible to add a css class to the <li> and <a> tag
the menu with no cms tags added is below
- Code: Select all
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
The code with the cms tags is below
- Code: Select all
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto level-0">
<li id="item-home" class="level-0 nav-item active current ">
<a href="https://www.beechwoodsolutions.co.uk/sites/cmsdemo/index.php?p=1">Home</a>
</li>
<li id="item-contact" class="level-0 last "><a
href="https://www.beechwoodsolutions.co.uk/sites/cmsdemo/contact.php">Contact</a>
</li>
</ul>
</div>
The menu.html coding in the snippets folder is below
- Code: Select all
<cms:menu masterpage='index.php' menu_class='navbar-nav ml-auto' />