I've added a help section using the add_help_tab() function. I'd like to be able to click a link somewhere on the theme/plugin page and have the help panel open at whichever tab I need. Can someone help me out with the required JS for this?

Each tab panel has a unique hash link associated with it so I'd need to use this somehow I'm guessing


1 Answer 1


Maybe the Q is bordering the off-topic, but IMO interesting in WordPress context.

I've tested this directly in FireBug, in the Dashboard page (wp-admin/index.php).

var $ =jQuery.noConflict();

// Remove 'active' class from all link tabs

// Hide all panels

// Set our desired link/panel

// Force click on the Help tab
  • Thanks. The animation becomes a bit jerky when I try and use it within a click function for my links, however it works and will do for now :)
    – Andrew
    Dec 13, 2012 at 22:29
  • @Andrew, maybe you can take it to StackOverflow to see if improvements are possible. Glad it helped, g'luck :)
    – brasofilo
    Dec 13, 2012 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.