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

Metronic -> header bar menu customisation


Hi ,

I just purchased the Metronic Template.

I am using laravel (bit new to Laravel, previously Java Developer)

I am able to modify the menu for sidebar , but unable to modify the Header menu bar menus.

i have tried to make changes to :

resources/views/layout/partials/header-layout

But changes dosen't seem to take any effect.


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,

To modify the Header menu bar menus in your project, please follow these steps:

1. Open the file `/starterkit/app/Core/Bootstrap/BootstrapDefault.php`.
2. Look for the line that contains `$this->initDarkHeaderLayout();`.
3. Remove the comment from that line to enable the Dark Header Layout.

Next, proceed with the following steps:

1. Open the file `/starterkit/app/View/Components/DefaultLayout.php`.
2. Locate the line that sets the view path, which should look like this:

return view(config("settings.KT_THEME_LAYOUT_DIR")."._default");

3. Modify the view path to point to the `_default_header_layout` file. Update the line as follows:

return view(config("settings.KT_THEME_LAYOUT_DIR").". _default_header_layout");

By making these changes, you should be able to modify the Header menu bar menus. Please give it a try and see if it resolves the issue. If you have any further questions or need additional assistance, feel free to ask.

Thanks



Hey @faizal

I have tried to change the default layout sidebar to the header
I have followed the all steps you mentioned but I'm facing an error after the changes

InvalidArgumentException
View [partials.theme-mode._main] not found.
\resources\views\layout\partials\header-layout\header\_navbar.blade.php : 44



You bring a new source of knowledge for me to learn. Really developed and diverse. Every issue is analyzed in detail. Really attractive scratch games


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  :(