Tagged: menu
-
AuthorPosts
-
christofferl Friend
christofferl
- Join date:
- January 2011
- Posts:
- 233
- Downloads:
- 30
- Uploads:
- 101
- Thanks:
- 21
- Thanked:
- 2 times in 1 posts
March 21, 2018 at 2:40 pm #1112725I would like to know how to remove/disable the "mainmenu" so that I can add another menu component which uses a module. Therefore I need to place this new menu module to the mainmenu position. This seems not to work as it is "hard coded" into the template.
Please let me know how to solve this.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 21, 2018 at 6:41 pm #1112727Hello
To have this there will need some changes – i used module maximenu ck as example below you can see the result page in the default template layout
Here steps
1) install module maximenu ck and publish it in position mainmenu ( you can enter it manually as position name since it is not in the default template installation but we use it for this purpose)
2) Take a backup then edit this file /templates/ja_company/tpls/default.php in this way
<div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas --> <div class="wrapper-hd"> <?php $this->loadBlock('topbar') ?> <?php $this->loadBlock('header') ?> ** <?php $this->loadBlock('mainmenu') ?>** <?php $this->loadBlock('slideshow') ?> <?php $this->loadBlock('masthead') ?> <?php $this->loadBlock('content-mast-top') ?> <?php $this->loadBlock('content-tabs') ?> <?php $this->loadBlock('mainbody') ?> <?php $this->loadBlock('content-mast-bottom') ?> <?php $this->loadBlock('spotlight-1') ?> <?php $this->loadBlock('navhelper') ?> <?php $this->loadBlock('footer') ?>
as you can see i changed block name from mainnav to mainmenu
3) Add in this folder /templates/ja_company/tpls/blocks/ php file i attached
4) Configure your mainmenu ck module to use your joomla menu items
Hope it helps
-
1 user says Thank You to pavit for this useful post
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 1 reply, has 2 voices, and was last updated by pavit 6 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum