VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Automatic "hide" mobile Menue
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Automatic "hide" mobile Menue

Automatic "hide" mobile Menue 28 Feb 2016 18:05 #8307

Dear @ All from Hamburg / Germany.

I have a last issue before I buy the Template.

Is it possible to hide the items of the mobile menue after clicking a item.

For example, I click on my mobile medue, it shows me the menue items. Then I choose "gallery" (for explample), the page open but the menu items are still shown. Is it possible to open a Item and the menue items will hide automaticly again? The visitor always has to click the mobile menue button manually to hide the items.

Thanks

Re: Automatic "hide" mobile Menue 04 Mar 2016 04:05 #8347

Try to add this code into templates/jf_event-up/scripts/js/template.js at line 51:
$('.nav-collapse').collapse('hide');

After adding, it look like:
 
menuItems.click(function(e){
$(".navigation ul.nav > li").removeClass('active');
$(this).parent().addClass('active');
var href = $(this).attr("href"),
offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+12;
$('html, body').stop().animate({
scrollTop: offsetTop},{
duration: 500,
easing: 'easeOutCubic',
complete: window.reflow
});
$('.nav-collapse').collapse('hide');
e.preventDefault();
});
 


joomfreak
The following user(s) said Thank You: ageselle

  • Posts:2784
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Automatic "hide" mobile Menue 04 Mar 2016 14:56 #8350

PERFECT Support.

I bought the template now. You should have my donation now fron germany

EDIT: I solved my second problem by myself

THANKS
Last Edit: 04 Mar 2016 15:34 by weissbrot1887.

Re: Automatic "hide" mobile Menue 07 Mar 2016 02:46 #8357

Thank you very much!

Regards

JF Support

  • Posts:2784
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.80 seconds
Tuesday 20 August 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.