We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. tincup
  2. General Discussion
  3. Monday, 21 July 2014
  4.  Subscribe via email
hello,
how can I do that the mainmenu displayed open to default not collapsed, and instead collapses when I click the icon.

this is my mainnav
 <!-- MAIN NAVIGATION -->
<nav id="t3-mainnav" class="wrap t3-mainnav navbar-fixed-top navbar-collapse-fixed-top">
<div class="container-menu navbar">
<div class="navbar-inner">

<button type="button" class="nav-trigger" data-toggle="collapse" data-target=".nav-collapse">
<i class="super-icon"></i>
</button>

<div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
<?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
<jdoc:include type="megamenu" />
<?php else : ?>
<jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
<?php endif ?>
</div>
</div>
</div>
</nav>
<!-- //MAIN NAVIGATION -->

sorry for my bad english;)
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

First, it belongs to customization then it's out of support scope.
Second, it's complex because it depends on which menu item you want to display by default. Imagine that you have 5 main menu items, each of those menu items has multiple sub-menu items.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
There are almost succeeded; Now the menu is open by default, but it is necessary to close a double click
This is the new code:
<!-- MAIN NAVIGATION -->
<nav id="t3-mainnav" class="wrap t3-mainnav navbar-fixed-top navbar-collapse-fixed-top">
<div class="container-menu navbar">
<div class="navbar-inner">

<button type="button" class="nav-trigger" data-toggle="collapse" data-target=".t3-navbar-mainmenu">
<i class="super-icon"></i>
</button>

<div class="t3-navbar-mainmenu nav-collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
<?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
<jdoc:include type="megamenu" />
<?php else : ?>
<jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
<?php endif ?>
</div>
</div>
</div>
</nav>
<!-- //MAIN NAVIGATION -->
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
I did not imagine it was so complex. I just wanted to reverse the operation of the menu and make sure that the menu is open by default (instead of opening on click).
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

It's quite complex customization. You may have to add JS to implement this function and I am afraid that it's out of our support scope.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.