Plugin Compatibility

Many WordPress plugins allow you to expose content using a short code. Like all WordPress themes, Responsive Tabs supports plugin shortcodes on pages and posts.

The design of Responsive Tabs encourages you to display wide format shortcodes, like tables or forums, in the front page widgets. The beauty of the Responsive Tabs design is that a shortcode in tab will not run unless the tab is selected. That means your users won’t wait for the shortcode to load unless they actually want to see the content that the short code offers.

Short codes that can look great in front page tabs include NextGen Gallery, a TablePress table, or bbPress forum.

To make shortcodes work in the front page widgets, you have to add one line of code into the functions.php file:

add_filter( 'widget_text', 'do_shortcode' );

One safe place to put that line is after the <?php tag in the very first line in the functions.php file, so the first line would look like this:

<?php add_filter( 'widget_text', 'do_shortcode' );

To get at the functions.php file, go to the Editor under the Appearance Menu and click on Theme Functions. That will call up the functions.php file in the editor.  Once you’ve done that, then to show plugin content with a shortcode in a tab, all you have to do is drop a text widget in the tab and put the shortcode in the text widget.

You might ask:  Why doesn’t Responsive Tabs just include that line of code?. The answer is: Because Responsive Tabs is a “Theme” and shortcodes are for “Plugins” and WordPress standards do not permit Themes to invade “Plugin Territory”.

Please note, this thread is not open for comment at this time.

This is site is powered by Wordpress and the responsive-tabs theme.