Is there any way to set all of the tabs on Quicktabs to closed or inactive by default?

I would like, that if I visit the page then the first Quicktab isn't open by default. In this inherited site there are images and content underneath this open tab that I would like visible instead of an opened tab.

Would I have to implement something using JavaScript or is there a better option beside Quicktabs?

Quicktabs Version: 7.x-3.8 | Drupal Version: 7.57


I think that you might need to add some jQuery to your theme.

Here is a way to do it.

    jQuery("#id-of-my-custom-block h3:first").trigger('click');
| improve this answer | |
  • will try this out and report back, thx – fndtn357 Mar 26 '18 at 10:01
  • WHERE in the theme are you doing this? – Rob Orr Aug 30 '18 at 18:17
  • You need to create a library and a JS file in your theme. You can read instructions on Drupal.org if you search for add library to theme – user72672 Aug 30 '18 at 22:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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