Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Cannot change menu item in .net core version


Hello,
I'm unable to change the menus.
For example I would like to change the "Default" label on the first menu item of the "Dashboard" section on the top menu.

In order to do that I have changed the lien 17 of the __Dashboards.cshtml file in the Views/Layout/HeaderLayout/Header/_Menu directory.
I have written :
<span class="fs-6 fw-bold text-gray-800">Ingredienti</span>

Everytime I start the project the label is always "Default" and not "Ingredienti".

I'm working on the SterterKit project in the metronic_asp.net-core_v8.1.5_demo1 .


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Sorry for the late reply.

I guess the issue could be related that you might change the text in wrong __Dashboards.cshtml file, we have two versions of this file used in different layouts, please make sure you are updating the right file.

For sidebar layouts you need to update Views/Layout/Partials/SidebarLayout/Header/_Menu/__Dashboards.cshtml and for header layouts Views/Layout/Partials/HeaderLayout/Header/_Menu/__Dashboards.cshtml.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi,
thanks a lot. I've found my mistake. Looking into my _ViewStart.cshtml I found I'm using the sidebar tree.

Fabio



Hi,

Glad to hear that. All the best with your project!

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(