Nav Menu Active on item without children

Home Forums Porto Admin – Responsive HTML5 Template Nav Menu Active on item without children

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by Support. This post has been viewed 578 times
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10044580
    mkovnick
    Participant

    To see the source of my question, look at this demo page:
    https://www.okler.net/previews/porto-admin/4.2.0/extra-ajax-made-easy.html

    HEre we are on the “Ajax” page, but on the sidebar nav menu, Ajax is not showing as “active”. This behavior is common to all menu items without children. I have tries setting the class to nav-active as is normal with submenu items, but no luck. Example:
    `
    <li class=”nav-active”>
    <a class=”nav-link” href=”/backend/media_assets/”>
    <i class=”fa-duotone fa-image” aria-hidden=”true”></i>
    <span>Media</span>
    </a>
    </li>
    `

    Is there something I am missing?
    Thanks.


    #10044581
    Support
    Keymaster

    Hi, add the class nav-expanded in the LI element, for example:

    <li class="nav-expanded">
    	<a class="nav-link" href="extra-ajax-made-easy.html">
    		<i class="bx bx-loader-circle" aria-hidden="true"></i>
    		<span>Ajax</span>
    	</a>                        
    </li>

    Kind Regards.


Viewing 2 posts - 1 through 2 (of 2 total)

This topic is marked as "RESOLVED" and can not rceive new replies.