J-B Posted January 20, 2021 Share Posted January 20, 2021 Hi, i am testing the new Template Twenty One. I create my own template (child-theme), but I always see "More" in the navbar: What is "More"? Why I see "More"? There are no links in the dropdown. The dropdown is empty. I've looked a bit in the code. This "More" comes from "/whmcs/templates/twenty-one/includes/navbar.tpl". {if !isset($rightDrop) || !$rightDrop} <li class="d-none dropdown collapsable-dropdown"> <a class="dropdown-toggle" href="#" id="navbarDropdownMenu" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> {lang key='more'} </a> <ul class="collapsable-dropdown-menu dropdown-menu" aria-labelledby="navbarDropdownMenu"> </ul> </li> {/if} The only way is to delete this code. Is it a bug or for what is this good for? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 20, 2021 WHMCS Support Manager Share Posted January 20, 2021 Hi @J-B, This menu item was added to hold extra primary navigation when there are too many menu items to fit in one line. If you right click on the item in the dropdown and inspect it, what url does it have? There could be a link, but it appears empty due to a missing language string. 0 Quote Link to comment Share on other sites More sharing options...
J-B Posted January 20, 2021 Author Share Posted January 20, 2021 Hi @WHMCS John there is no link, only a marker #. The dropdown is to 100% empty! 0 Quote Link to comment Share on other sites More sharing options...
hostdog Posted March 6, 2021 Share Posted March 6, 2021 Hi, Twenty-one template uses javascript to add "d-none" class and hide this dropdown menu item if it is empty. To fix the issue you must add "nav" ID at the container. <ul id="nav" class="navbar-nav ml-auto"> {include file="$template/includes/navbar.tpl" navbar=$primaryNavbar} </ul> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.