Toggle Show/Hide

Toggle to show/hide content (allows custom title).

[toggle]content[/toggle] to use toggle in basic format.

Set a title by using the title parameter: [toggle title=’Click to show/hide spoiler’]content[/toggle]

Override settings width using width parameter: [toggle width=’75%’]content[/toggle]

Set toggle to default open using the expand parameter: [toggle expand=1]content[/toggle]

Override CSS border using the border parameter: [toggle border=’none’]content[/toggle] or [toggle border=’1px dashed #FF0000′]content[/toggle]

Override settings title colour using the title_color parameter: [toggle title_color=’#000′]content[/toggle]

Override settings title font family using the title_font parameter: [toggle title_font=’Arial, Calibri’]content[/toggle]

Override settings title font size using the title_font_size parameter: [toggle title_font_size=’14px’]content[/toggle]

Override settings title font weight using the title_font_weight parameter: [toggle title_font_weight=600]content[/toggle]

Override settings title background colour using the bgtitle parameter: [toggle bgtitle=’#007FFF’]content[/toggle]

Override settings text colour using the text_color parameter: [toggle bgtext=’#000′]content[/toggle]

Override settings text background colour using the bgtext parameter: [toggle bgtext=’#000′]content[/toggle]

Override settings text font family using the title_font parameter: [toggle text_font=’Arial, Calibri’]content[/toggle]

Override settings text font size using the title_font_size parameter: [toggle text_font_size=’14px’]content[/toggle]

Override settings text font weight using the title_font_weight parameter: [toggle text_font_weight=600]content[/toggle]

Override settings disable title images using disable_image=1 or disable_image=0

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. Add extra images by dropping them into the plugins /images folder

This plugin supports language translations. If you want to translate this plugin please sent the .po and .mo files to for inclusion in the next version (full credit will be given). The .pot fie is in the languages folder of the plugin and can also be downloaded from the plugin page on


Download from


To install the plugin copy the azurcurve-toggle-showhide folder into your plug-in directory and activate it.

Add extra images for the toggle by placing them in the /images folder.


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


  • Fix undefined array_key and unassigned variable errors.


  • Move menu to includes folder for easier maintenance


  • Fix undefined constant error in PHP 7.2


  • Allow title tag of toggle to be changed; will default to h3 (as per previous functionality)


  • Add azurecurve menu


  • Fix bug causing title_font_weight error


  • Fix bug causing undefined image indexes


  • Add Image Open and Close to settings to allow image to easily be changed


  • Fix bug with image index


  • Fix bug with multi-language


  • Added new option and override for: width.


  • Fix bug with default title not displaying from settings


  • Fix bug in toggle where background image was repeated


  • Added new options and overrides for: title font family/size/weight
  • Added new options and overrides for: text font family/size/weight
  • Added new options and overrides for: disable title images.


  • Added colour overrides for text (content) part of the toggle


  • Added background colour overrides for both the title and text parts of the toggle


  • Added options page to allow title, title color and border defaults to be set at either site or network level
  • Allowing Shortcodes within toggle shortcode no longer the default; can be enabled via the Settings page
  • Localisation available by translating the pot file


  • Add ability to use shortcodes within toggle tags for both title and content


  • Fix bug with expand_active variable


  • Add parameter to override border
  • Fix bug with expand parameter not working
  • CSS tidy up


  • Change height in style.css to em from px


  • Add expand parameter


  • WordPress 4 Compatible


  • First version


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.