Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • christofferl Friend
    #1112725

    I 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 Moderator
    #1112727

    Hello

    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. Screenshot-at-mar-21-19-31-42
    1. mainmenu.php_.zip
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  pavit 6 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum