Topic: How can I keep an accordion menu open between pages?

FPXJosh pro asked 7 years ago


I'm trying to keep my menu open between pages, my menu is almost an exact clone of the left nav menu on this site. I'd like to have the menu open to the page the user is on when they click on a link.

Bartłomiej Malanowski staff commented 7 years ago

What's the technology you use? Do you use any framework?

FPXJosh pro commented 7 years ago

No frameworks, however I am on hubspot which makes anything I do 10x more time consuming. The content on the site is private so I cant post a link here but if anyone wants me to email them a link to an example just let me know.

FPXJosh pro commented 7 years ago

I figured it out after some hours of messing around, here's what I came up with. jQuery(function(){ jQuery('.active-branch > a').click(); });

Bartłomiej Malanowski staff commented 7 years ago

is your problem resolved?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags