Create new page and add menu example members

Hello,
I’ve tried adding a new page to the example, except for adding the menu item that works fine too.

To add the menu item I used the following

{% extends ‘@core / navigation / main-nav.html.twig’%}

{% block main_nav%}

 {{parent ()}}
 <Li>
   <a href="{{site.uri.public}}/members"> {{translate ("MEMBERMESSAGE")}} </a>
 </ Li>

{% endblock%}

it works like this but on the right side the usermenu (dropdown) has disappeared. What am I doing wrong?

Regards

Peter

Hi @pitter, could you please use Markdown to properly format your code samples? This will make your posts easier to read.

It looks like you might have some malformed HTML that could be causing rendering issues in your browser. Can you try doing “view source” and see if you can find the menu markup in there?

Hello alexweisman,
it lacks the usermenu.

<!-- Navbar Right Menu -->
<div class=`navbar-custom-menu`>
  <ul class=`nav navbar-nav`>
          </ul>
</div>
<!-- /.navbar-custom-menu -->

It looks like maybe you are extending the wrong template. Have you looked at https://learn.userfrosting.com/recipes/extending-template#adding-custom-menu-entries ?

Sidebar menu items (the one on the right) should indeed be in the sidebar-menu.html.twig file as per the link @alexweissman shared.