Title: define toggle active in shortcode
Last modified: August 21, 2016

---

# define toggle active in shortcode

 *  [mewcrazy](https://wordpress.org/support/users/mewcrazy/)
 * (@mewcrazy)
 * [12 years ago](https://wordpress.org/support/topic/define-toggle-active-in-shortcode/)
 * Works great. But I want to define if a toggle is shown as open.
 * Right now my shortcode looks like this:
 * [toggle title=”Toggle Title” open=”yes”]
    #Content# [/toggle]
 * [https://wordpress.org/plugins/shortcode-toggle/](https://wordpress.org/plugins/shortcode-toggle/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [windsurfs-akademia](https://wordpress.org/support/users/windsurfs-akademia/)
 * (@windsurfs-akademia)
 * [12 years ago](https://wordpress.org/support/topic/define-toggle-active-in-shortcode/#post-4757995)
 * Hi , how did you do your demo site ? /music and hello world/
    Can I get a thing
   like that? ThanX
 *  [danipi900](https://wordpress.org/support/users/danipi900/)
 * (@danipi900)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/define-toggle-active-in-shortcode/#post-4758032)
 * I designed a toggle with this shortcode and it does not work.
    It creates a box
   with a small + button but it stays open and does not work as it should. The short
   code is typed correctly! Any ideas why?
 *  Thread Starter [mewcrazy](https://wordpress.org/support/users/mewcrazy/)
 * (@mewcrazy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/define-toggle-active-in-shortcode/#post-4758033)
 * Press CTRL+Shift+L to open the developer console of your browser and see if there
   are any JavaScript/jQuery Errors. Try debugging them by googling for the error
   messages in the developer console.
 * Or maybe they just changed the shortcode syntax? I didn’t check that.
 * Kind Regards,
    Dennis Bitsch _[sig moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome)]_
 *  [extremecarver](https://wordpress.org/support/users/extremecarver/)
 * (@extremecarver)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/define-toggle-active-in-shortcode/#post-4758034)
 * If it’s not opening than have a look if there are any other [] action blocks 
   that are not wrapped around correctly, or even better look at html view in the
   editor to see if there are any other actions conflicting..
 * I noticed Shortcode Toggle is quite breakable in this regard (or better said –
   very sensitive regarding unclean code/usage).
 *  [rintokuriakose74](https://wordpress.org/support/users/rintokuriakose74/)
 * (@rintokuriakose74)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/define-toggle-active-in-shortcode/#post-4758037)
 * [toggle title=”Title”] content [/toggle]
 * try this one. Avoid the open=”yes”

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘define toggle active in shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcode-toggle_fafafa.svg)
 * [Shortcode Toggle](https://wordpress.org/plugins/shortcode-toggle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcode-toggle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-toggle/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-toggle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-toggle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-toggle/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [rintokuriakose74](https://wordpress.org/support/users/rintokuriakose74/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/define-toggle-active-in-shortcode/#post-4758037)
 * Status: not resolved