Announcement

#1 2021-05-03 21:29:12

stevebni
Member
2021-05-03
28

How To Add A Top-level Item To The Main Menu?

I'm using the Bootstrap Darkroom theme trying to add a top-level menu item, and failing.

I've read a lot of threads on here and all say use Advanced Menu Manager, and it's great, but it only seems to allow me to add a menu block, with items in a dropdown. I don't want that, I wish to add a link directly into the main menu.

Does anyone know how to do it? Or, if AMM can do it, can someone point me in the right direction?

Thanks.

Offline

 

#2 2021-05-07 20:35:12

drlecter
Member
2016-03-17
21

Re: How To Add A Top-level Item To The Main Menu?

I use the AMM and create a Child Theme from Bootstrap for this.
I only add (ne normal Files for the Childtheme also) this File (
Folder:
themes/bootstrap_darkroom_child/template

Filename menubar_additional_pages.tpl
{foreach from=$block->data item=data}
  <li class="nav-item">
    <a class="nav-link" href="{$data.URL}">{$data.LABEL}</a>
  </li>

Offline

 

#3 2021-05-08 18:20:51

stevebni
Member
2021-05-03
28

Re: How To Add A Top-level Item To The Main Menu?

That's brilliant, I can now build my own menu, at last!

Thank you.

Offline

 

#4 2022-03-03 16:07:10

rajdude
Member
2021-05-18
90

Re: How To Add A Top-level Item To The Main Menu?

Hello!
I want to do the exact same thing as the OP. However, I am not a coder....not much knowledge about CSS :-(

Is there another way to do this?

I have installed AMM and added a link, but I end up with links at the top and my URL in the drop down menu.
Got to be an easier way to do this, right?

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact