WordPress.org

Forums

Squelch Tabs and Accordions Shortcodes
[resolved] Set tabs collapsed upon page load (3 posts)

  1. rchrisbishop
    Member
    Posted 1 year ago #

    I like the way the tabs can be collapsed with a click. Is there a way to have the tabs already collapsed on the page load?

    I tried setting the Tabs default array to

    'active' => false,

    with no effect.

    https://wordpress.org/plugins/squelch-tabs-and-accordions-shortcodes/

  2. squelch_tanya
    Member
    Posted 1 year ago #

    I have referred this to the developer to be looked into.

  3. Matt Lowe
    Member
    Plugin Author

    Posted 1 year ago #

    You should be able to do this in the shortcode itself, you shouldn't need to change any code in the plugin:

    [tabs title="" disabled="false" collapsible="true" active="false" event="click"]
    
    [tab title="Welcome"]
    
    Tab one
    
    [/tab]
    
    [tab title="Another tab"]
    
    Tab two
    
    [/tab]
    
    [/tabs]

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Squelch Tabs and Accordions Shortcodes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic