Toggle Show/Hide

toggle shortcode can be used to show/hide content.

[toggle]content[/toggle] to use toggle in basic format; parameters are read from settings.

The following parameters can be used:

  • title – e.g.
  • expand – set to 1 to display toggle open; 0 to display toggle closed. e.g. [toggle expand=1]content[/toggle]
  • width – override width from settings. e.g. [toggle width=75%]content[/toggle]
  • border – override border from settings. e.g. [toggle border=’none’]content[/toggle] or [toggle border=’1px dashed #FF0000’]content[/toggle]
  • title_color – override title color from settings. e.g. [toggle title_color=’#000’]content[/toggle]
  • title_font – override title font family from settings. e.g. [toggle title_font=’Arial, Calibri’]content[/toggle]
  • title_font_size – override title font size from settings. e.g. [toggle title_font_size=’14px’]content[/toggle]
  • title_font_weight – override title font weight from settings. e.g. [toggle title_font_weight=600]content[/toggle]
  • bgtitle – override text background colour from settings. e.g. [toggle bgtitle=’#007FFF’]content[/toggle]
  • text_color – override text colour from settings. e.g. [toggle bgtext=’#000’]content[/toggle]
  • text_font – override text font family from settings. e.g. [toggle text_font=’Arial, Calibri’]content[/toggle]
  • text_font_size – override text font size from settings. e.g. [toggle text_font_size=’14px’]content[/toggle]
  • text_font_weight – override text font weight from settings. e.g. [toggle text_font_weight=600]content[/toggle]
  • bgtext – override text background colour from settings. e.g. [toggle bgtext=’#000’]content[/toggle]
  • disable_image – set to 1 to disable toggle image. e.g. [toggle disable_image=1]content[/toggle]

Shortcodes can now be used inside the content or title of the toggle (tested with Contact Form 7 and azurecurve BBCode).

Select toggle image in options or network options; allows different sites in a network to use different images. Extra images can be added by dropping them into the plugins /images folder

This plugin is multisite compatible; each site can be set to use network settings or locally defined ones.

Download

Download from GitHub.

Installation

To install the Toggle Show/Hide plugin:

  • Download the plugin from GitHub.
  • Upload the entire zip file using the Plugins upload function in your ClassicPress admin panel.
  • Activate the plugin.

Support

Support, including bug reports, feature requests or questions, is available from azurecure via the azurecurve Community site.

Translations

Translations are usually in the plugins languages folder, but our Translations site will have the most up-to-date versions.

If you can translate the plugin, please request access via the azurecurve Community site.

Changelog

Changes and feature additions for the Toggle Show/Hide plugin:

  • 1.0.0
    1. First version for ClassicPress forked from azurecurve Toggle Show/Hide WordPress Plugin.

Frequently Asked Questions

  1. Can I translate this plugin?

    Yes, this plugin can be translated using the available .pot file or via our Translations site which will have the most up-to-date versions.

    To translate on our translation site, please request access via our Community site.

  2. Is this plugin compatible with both WordPress and ClassicPress?

    This plugin is developed for ClassicPress, but will likely work on WordPress.

Donation

azurecurve plugins are free, open source tools for increasing the potential of WordPress as a CMS.

Plugins are a result of many many hours spent to deliver best product possible, reading comments from you and trying to support every WordPress release as soon as possible.

You can help support the development by donating a small amount of money.