Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

About Menus

  • franky01jw
  • franky01jw's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 2 months ago #139621 by franky01jw
About Menus was created by franky01jw
Hi, two questions:

1 - Is it possible that the menu "off canvas" (the dark and right one used with small screen sizes) be different, not the same menu, that the Main Menu in home page? Can i have two different menus, one for desktop screens and another different one for tablets and so on?

2 - It would be great if the "off canvas" menu (the dark one) hide not only when clicking or touching the toggle button, but also when touching or clicking ( or scrolling?) the page (the left and content page). Look here: www.squarespace.com . Is it difficult to achive this?

Thanks.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #139622 by Krikor Boghossian
Replied by Krikor Boghossian on topic About Menus
Hello,

Yes you can. You can change the module that it being loaded in the off canvas menu.

You can change it in your index.php file like this.
<?php if($this->countModules('matchbox_Menu')): ?>
			<!-- Off Canvas Menu -->
			<nav class="right-off-canvas-menu">
				<a class="right exit-off-canvas">
					<i class="glyph-close"></i>
				</a>

				<?php if(count($social)): ?>
				<ul class="show-for-small list-none social-list">
					<?php foreach($social as $provider): ?>
					<li>
						<a class="social <?php echo $provider->class; ?>" target="_blank" href="<?php echo $provider->url; ?>">
							<i class="icon-<?php echo $provider->class; ?>-circled"></i><span class="visuallyhidden"><?php echo $provider->name; ?></span>
						</a>
					</li>
					<?php endforeach; ?>
				</ul>
				<?php endif; ?>

				<jdoc:include type="modules" name="matchbox_Menu" style="nu" />
			</nav>
			<?php //endif; ?>

			<?php endif; // 1st off canvas navigation check ?>

to
<?php if($this->countModules('matchbox_MenuMobile')): ?>
			<!-- Off Canvas Menu -->
			<nav class="right-off-canvas-menu">
				<a class="right exit-off-canvas">
					<i class="glyph-close"></i>
				</a>

				<?php if(count($social)): ?>
				<ul class="show-for-small list-none social-list">
					<?php foreach($social as $provider): ?>
					<li>
						<a class="social <?php echo $provider->class; ?>" target="_blank" href="<?php echo $provider->url; ?>">
							<i class="icon-<?php echo $provider->class; ?>-circled"></i><span class="visuallyhidden"><?php echo $provider->name; ?></span>
						</a>
					</li>
					<?php endforeach; ?>
				</ul>
				<?php endif; ?>

				<jdoc:include type="modules" name="matchbox_MenuMobile" style="nu" />
			</nav>
			<?php //endif; ?>

			<?php endif; // 1st off canvas navigation check ?>

You should also add this position "matchbox_MenuMobile" to your configuration.php file.

As for your second request sadly this is not possible. You would have to implement a completely new and different off canvas menu.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • franky01jw
  • franky01jw's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 2 months ago #139623 by franky01jw
Replied by franky01jw on topic About Menus
Ok, thanks.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #139624 by Krikor Boghossian
Replied by Krikor Boghossian on topic About Menus
Let me know if you need any more assistance with the menu.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum