Welcome! To use this support forum, please Login or Join Today!

   

Toggle options?

{name}
RankRank

Total Posts: 45

Joined 2013-06-24

PM

 

Is there a link to where I can see ALL the toggle options?  I know right now they auto-close upon opening a new one but how do you leave them all open after clicking?

{name}
RankRank

Total Posts: 45

Joined 2013-06-24

PM

 

Bump.

I can’t find the options listed anywhere.  On the demo page the toggles are closed by default. 

http://www.simplethemes.com/wordpress-themes/demo/onyx

How do I get this to do the same???

I really don’t like having to bother the creater of the the theme for something that technically should be in the plugin docs but I am left with no choice.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

You’re not missing any options. As it turns out, the demo is actually running an older version of the theme. A user requested the toggles auto-collapse awhile back and it looks like I committed that to the core, in order for it to be a true toggle.


So basically, you’ll need to revert back to the old (demo) function.

Short answer:

Open wp-content/themes/onyx/js/custom.js and find the toggleMenu() function and replace with this:

// TOGGLE
function toggleMenu(){
 jQuery(".toggle_container").hide(); 
 //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
 jQuery("p.trigger").click(function(){
  jQuery(this).toggleClass("active").next().slideToggle("normal");
  return false; //Prevent the browser jump to the link anchor
 });
      
}