Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

SOLVED !!! Hide the menu in the mainmenu module

More
10 years 11 months ago - 10 years 11 months ago #70851 by Rohit
I am using the OS Property template. I want to Hide the menu in the mainmenu module position and only show the Offcanvas menu
Last edit: 10 years 11 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

  • Truong Tong Quang
  • Offline
  • Junior Member
  • Junior Member
More
10 years 11 months ago #70856 by Truong Tong Quang
Replied by Truong Tong Quang on topic Hide the menu in the mainmenu module position
Hi Rohit,
To hide the menu in the mainmenu module position and only show the Offcanvas menu , please follow these steps
You on in Back-end
Please see the attached screen shot
awesomescreenshot.com/01b5cni0e2
Then you go php-file in /templatename/tpls/xxxx.php
In this file you add wrapped the mainnav-php-block in a div:
This is hide main menu but not on mobile phone
<div class="hidden-lg hidden-sm hidden-md">
<?php $this->loadBlock('mainnav') ?>
</div>
If you want to only use the off-canvas menu in mobile, so you don't need the MegaMenu anymore. You can comment out the line
<?php $this->loadBlock('mainnav') ?>
Thanks
Truong

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #70865 by Rohit
Thanks for the reply..tried adding <div class="hidden-lg hidden-sm hidden-md">
<?php $this->loadBlock('mainnav') ?>
</div>
but it also hides the logo.I do not want to hide the logo. What should i do?

Please Log in or Create an account to join the conversation.

  • Truong Tong Quang
  • Offline
  • Junior Member
  • Junior Member
More
10 years 11 months ago #70866 by Truong Tong Quang
Replied by Truong Tong Quang on topic Hide the menu in the mainmenu module position
Hi Rohit
Name templates you are using ?
I can guide you better
Thanks
Truong

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #70868 by Mr. Dam
Replied by Mr. Dam on topic Hide the menu in the mainmenu module position
Hi Rohit,
Please submit ticket and send your site information with super admin account. We will help you to solve the problem.
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #70896 by Rohit
Added <div class="hidden-lg hidden-sm hidden-md"> in mainnav.php before <div class="mainmenu">. This hides the nav but shows the logo. Thanks for the help!!

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam, Nguyen Phu Quan