Jump to content

What is "More" in the Navbar?


J-B

Recommended Posts

Hi, 

 

i am testing the new Template Twenty One. I create my own template (child-theme), but I always see "More" in the navbar:

image.thumb.png.bc9e48635246994a0463bb19240ad89a.png

 

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?

Link to comment
Share on other sites

  • WHMCS Support Manager

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.

Link to comment
Share on other sites

  • 1 month later...

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>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated