Toggle to show/hide content (allows custom title).
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 [email protected] 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 http://wordpress.azurecurve.co.uk.
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: