Title: Set Shortcode Defaults for the Attributes
Last modified: August 21, 2016

---

# Set Shortcode Defaults for the Attributes

 *  Resolved [Moondrop](https://wordpress.org/support/users/moondrop/)
 * (@moondrop)
 * [13 years ago](https://wordpress.org/support/topic/set-shortcode-defaults-for-the-attributes/)
 * Hello, I would like to know if it is possible to custom define the default attributes
   for the shortcodes.
 * For example, in my layout I will consistently be using the shortcode:
    `[expands
   title="My title" trigclass="sub" elwraptag="div" elwrapclass="expand-wrap"]`.
 * However, ideally I would like to write the cleaner and shorter: `[expands title
   ="My title"]` for I know the trigclass, elwraptag, and elwrapclass will be the
   same each time.
 * I know I can modify the default attributes in collapse-o-matic.php, but then 
   I would potentially need to rewrite my attributes after each plugin update.
 * Apart from this one question/feature request, this is a fantastic plugin, and
   thanks for creating it!
 * [http://wordpress.org/extend/plugins/jquery-collapse-o-matic/](http://wordpress.org/extend/plugins/jquery-collapse-o-matic/)

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

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years ago](https://wordpress.org/support/topic/set-shortcode-defaults-for-the-attributes/#post-3755954)
 * in german we say: [jein](https://www.youtube.com/watch?v=tcV7VN3l3bY). Yes and
   No.
    Yes, the [pro](https://www.youtube.com/watch?v=tcV7VN3l3bY) version does
   offer this. No, the free version does not. Enjoy the video.
 *  Thread Starter [Moondrop](https://wordpress.org/support/users/moondrop/)
 * (@moondrop)
 * [13 years ago](https://wordpress.org/support/topic/set-shortcode-defaults-for-the-attributes/#post-3755976)
 * Wow, swift response and a video too haha =) ! Thanks for the answer, I’ll take
   a look into the pro version.

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

The topic ‘Set Shortcode Defaults for the Attributes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [Moondrop](https://wordpress.org/support/users/moondrop/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/set-shortcode-defaults-for-the-attributes/#post-3755976)
 * Status: resolved