This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

LTW Content Shortcodes

Description

LTW Content Shortcodes is a lightweight plugin that contains some useful shortcodes to enrich your content quick and easy.

Plugin contains 4 shortcodes which are tabs, columns, buttons and toggle.

Here are a few examples.

Tabs:
[tabs title=”Tab Example” float=”left” width=”500px” margin=”0 20px 20px 0″]
[tab title=”Tab 1″]Tab 1 Content[/tab]
[tab title=”Tab 2″ active=”true”]Tab 2 Content[/tab]
[tab title=”Tab 3″]Tab 3 Content[/tab]
[/tabs]

Columns:
[column position=”first” size=”1/2″]Column 1[/column]
[column position=”last” size=”1/2″]Column 2[/column]

[column position=”first” size=”1/4″]Column 1[/column]
[column position=”last” size=”3/4″]Column 2[/column]

Buttons
[button href=”http://www.google.com” value=”Button” color=”black” rel=”nofollow” target=”_blank” onclick=”alert(‘Button Was Clicked!’);” class=”custom_class” id=”btn_id”]

Toggle
[toggle title=”Toggle Example” float=”left” width=”500px” margin=”0 20px 20px 0″ status=”open”]Toggle content[/toggle]

For full list of options and what they do, please visit the plugin website.

Screenshots

  • Shortcode example

Installation

  1. Upload ltw-content-shortcodes folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Can I have multiple tab containers on one page?

Short and sweet: Yes.

Can the currently active tab be opened by default just by sharing a URL link?

Yes. Tabs will check if there is an id of the tag in the URL (added automatically when a tab is clicked) and will set that tab as active on page load even if you set a different tab as active in shortcode.

Can a button include Javascript on click?

Yes. Include this shortcode attribute: onclick=”alert(‘Button Was Clicked!’);”

Can the toggle be open by default?

Yes. Set the shortcode attribute status=”open”.

Contributors & Developers

“LTW Content Shortcodes” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.3

  • Modifed JavaScript to make the click on the tab affect the tab elements only.

1.0.2

  • New Feature – Using shortcodes inside tabs, columns and toggle is now possible.

1.0.1

  • Removed ( ) from “open” and “close” links.

1.0

  • First release