Squelch Tabs and Accordions Shortcodes provides shortcodes for adding stylish Web 2.0
style accordions and tabs to your WordPress website: Horizontal accordions, vertical accordions and tabs.
After you have installed the plugin you can use simple shortcodes on any page or post to add tabs or accordions.
Tabs and accordions can help to improve your website in a number of ways:
- Add interactivity: With collapsible accordions and tabs, you can make better use of the available space on the page.
- Add style: Tabs and accordions can help make your site look more professional and better polished than other sites.
- Save space: Tabs and accordions can save a lot of space on the page making your website look less cluttered.
- Separating content: Showing content only when required while the rest remains invisible dividing the content into parts.
If you want to add more interactivity with Tabs, Vertical and Horizontal Accordions on your WordPress website,
Squelch Tabs and Accordions Shortcodes is a good option.
A note on responsivensss:
We receive a lot of questions as to whether this plugin is responsive. All widgets in this plugin are responsive excluding the horizontal accordion widget: It uses a different library to the other widgets, and that library is unfortunately not responsive. We may add a responsive horizontal slider in the future, but it is not available yet.
Choose from 24 jQuery UI themes. Or, roll your own.
Horizontal Accordions come with 4 built-in themes, or you can design your own. Alternatively they can use the active jQuery UI theme.
What shortcodes are available?
Squelch Tabs and Accordions Shortcodes makes available 8 shortcodes: [accordions], [accordion], [haccordions], [haccordion], [tabs], [tab], [toggles] and [toggle]. The plural tags (accordions, haccordions, tabs, toggles) are wrappers that define the group of tabs or accordions. The singular shortcodes (accordion, haccordion, tab, toggle) represent the individual content items within each group.
How do I use the plugin?
Full instructions can be found on the Squelch Tabs and Accordions Shortcodes project home page on the Squelch Web Design website.
Can I change the look of the widgets?
Yes. The plugin creates jQuery UI accordions and tabs, jQuery UI-compatible toggles, and the horizontal accordions have been set up to use jQuery UI themes by default. So changing the jQuery UI theme in use on the page will change the appearance of the widgets. To change the jQuery UI theme simply go to Appearance Tabs and Accordions and choose a theme from the dropdown menu.
You can also style the widgets with your own custom CSS if you wish by using the .squelch-taas-override class, but that is beyond the scope of this FAQ. Instructions are available on the Squelch Tabs and Accordions Shortcodes project home page.
I used to use TheThe Tabs and Accordions, is this plugin compatible?
Mostly compatible, yes. The initial goal of the plugin was to provide compatibility with that plugin as a way for those who’ve been left stranded by the demise of TheThe Tabs and Accordions plugin to continue using their accordions, horizontal accordions, tabs and toggles. I’ve changed some of the defaults for the widgets from what TheThe Tabs and Accordions used so if you’ve not been explicit when creating shortcodes you may notice some changes. I believe the defaults are better and more in line with what most people will want. Also, some minor functionality has still not been implemented so if you rely on those functions you might spot a few inconsistencies. Feel free to raise a support request on the plugin forum if functionality you require is missing.
Is this a fork of TheThe Tabs and Accordions?
No. This plugin has been written from the ground up as a new plugin that happens to be compatible with TheThe Tabs and Accordions. It provides a number of fixes to issues that were present in TheThe Tabs and Accordions, and even offers some new functionality.
After installing the plugin I get a warning about a fix for TheThe Tabs and Accordions
When TheThe Tabs and Accordions plugin stopped working I provided a temporary fix to help keep everyone’s sites limping along. This fix was always intended to be temporary. If you receive the following message:
Squelch Tabs and Accordions Shortcodes has detected that you are using a fix for TheThe Fly’s Accordions and Tabs plugin that was made available by Squelch some time ago. The fix in question is NOT intended as a long-term solution and should be removed as soon as possible. By using Squelch Tabs and Accordions you do NOT need the fix. Please see this article for instructions on how to remove the fix from your website.
then you still have the fix enabled on your website. You will need to find the fix (look for function thethe_fix) and remove it. More information can be found on the Squelch Tabs and Accordions Shortcodes project home page.
Can I see a demo of the widgets?
Sure, on the Squelch Tabs and Accordions Shortcodes project home page.
Why does this plugin no longer work on versions of WordPress below 3.5?
If you’re on an older version of WordPress and still want to use the plugin then you will need to load a newer version of jQuery and jQuery UI. jQuery is pretty straightforward to upgrade (see the jQuery updater plugin) but I’ve not been able to find a plugin that does the same thing for jQuery UI. Maybe if I can find time I’ll write a plugin that offers this functionality, if I can get it past certain members of the WordPress.org plugin review team. It’s also possible to add some code to your theme to achieve this goal, I’ll try and put some documentation together for this shortly.
Are these widgets responsive?
All widgets is in this plugin are responsive excluding the horizontal accordion widget: It uses a different library to the other widgets, and that library is unfortunately not responsive. We may add a responsive horizontal slider in the future, but it is not available yet.
Can I link to a tab?
Yes! As of version 0.3.7 it is possible to link to a tab. The easiest way to achieve this is to open the tab you want to link to and, if you take a look at the page address, it should change as you click the tab. If you copy and paste this address it should link directly to the tab you have chosen.
- From your admin interface go to Plugins Add New
- Search for Squelch tabs and accordions
- Click “Install Now” under the plugin in the search results
- Click OK on the popup
- Click “Activate” to enable the plugin
Updates will be provided automatically through the WordPress updater.
- Unzip the installation zip file
- Copy the files to your plugins directory (via FTP or whatever)
- From the admin interface click Plugins
- Find the plugin in the list of plugins and click “Activate”
You will need to periodically check for updates.
- Bug fix: The new vanity URL code was causing an issue on PHP5 websites. Thanks to @emajluap for reporting.
- New feature: It is now possible to disable the Magic URL feature introduced in v0.3.7 so that changing tabs/accordions does not change your site’s URL.
- New feature: The Magic URL can also be partially branded with your own vanity URL.
- New feature: Smooth-scroll when linking to a tab. Rather than jumping the length of the page in one go, the page will now slide smoothly before the tab/accordion switch happens.
- Version bump for WP4.8.1.
- Bug fix: Links with hash fragments that do NOT point to a tab/accordion were broken in 0.3.7 and 0.3.8. Thanks to @jschinnerer for reporting the bug.
- Bug fix: When linking to, say, a tab on another page, if there are tabs on the current page, the link would always open the tab on the current page. Now fixed.
- Bug fix: Perhaps not quite a bug as such, but annoying nevertheless … all themes in the admin screen are now in alphabetical order to make it easier to find themes by name.
- New feature: It is now possible to link to a specific tab within the same page using a # fragment in the URL
- New feature: While clicking through tabs, accordions and toggles, a # fragment is added to the URL to make it easy to link to tabs etc
- New feature: On page load any # fragment in the URL will trigger the opening of the relevant tab, accordion or toggle
- New feature: Roll your own jQuery UI 1.11.4 theme from the theme roller and store it in your uploads directory so that plugin upgrades do not affect your theme.
- Bug fix: It’s now possible to use paragraphs or newlines to lay out your shortcodes once again.
- Bug fix: Test for custom jQuery UI theme from jQuery UI Widgets (my thanks to RobWunderlich for reporting this bug)
- New feature: [tab] shortcode now accepts a parameter of ‘class’ to add additional classes to your tabs.
- New feature: Roll your own theme from the theme roller and store it in your uploads directory so that plugin upgrades do not affect your theme.
- Version bump for WP4.5
- Minor bug-fix: After changing themes the admin interface would still show the OLD theme, this has now been resolved.
- Version bump for WP4.4
- Emergency bug-fix: Paragraphs and breaks being interfered with
- Version bump (which should work)
- Putting icons live as they’ve been in the dev branch for too long
- Version bump (which went wrong)
- Minor fix for a warning in debug mode.
- The plugin was banned from the WordPress.org directory for providing jQuery from the Google CDN and allowing the user to choose the version of jQuery they wanted to run on their site. Apparently this contravenes the WordPress.org directory guidelines, despite the fact that the guidelines seem to make no mention of jQuery anywhere and despite the fact there are a number of plugins in the directory that do exactly the same thing. In order to get the plugin relisted it was necessary to use the WordPress-hosted version of jQuery and package the jQuery UI theme files. As a result the plugin no longer works on WP3.5 and there’s not much I can do about that.
- When you upgrade WordPress you may find that none of your widgets work any more due to a change in version of jQuery. This is a WordPress.org enforced change.
- Code to add .squelch-taas-override was missing, added in.
- Enabled nested accordions.
- Selecting “no jQuery UI theme” was causing the front-end to attempt to pull in a theme named ‘none’ from the CDN.
- autoHeight was always on regardless of settings on the accordions shortcode. If you prefer the old behaviour then ensure you have autoHeight=”true” on the accordions shortcode.
- Fixed a bug that was preventing necessary default data being set in the options table on upgrade.
- Added in lighter text for haccordion’s dark theme, was somehow missed out of 0.1.1
- Added subtabs, subsubtabs, subtab and subsubtab shortcodes to allow tabs in tabs up to 3 levels deep
- Added subhaccordions, subhaccordion, subsubhaccordions and subsubhaccordion shortcodes to allow nested horizontal accordions
- Added toggles and toggle shortcodes and created jQuery plugin to provide toggle functionality
- Added subtoggles, subtoggle, subsubtoggles and subsubtoggle shortocdes to allow nested toggles
- Created admin interface configuration page with theme switcher for jQuery UI themes
- All generated screen widgets get a class of squelch-taas-override to make overriding styles in themes easier
- Added option to allow jQuery and jQuery UI to not be loaded if desired
- Plugin now works on older versions of WordPress down to 3.3
- pauseonhover attribute was being erroneously ignored
- Fixes for styles in certain themes that might interfere with the horizontal accordions
- Dark theme now has grey text in the content area by default to make it easy to use out of the box
- Scripts and styles loaded from Google CDN for performance
- Fix for WordPress 3.4.2 (and possibly lower)
- Initial version