Changing default behavior to reduce use of attributes
-
Great plugin, just what I needed! In an effort to use fewer attributes in shortcodes (to reduce visual clutter in the WP edit screen) I have made a couple changes to the default behavior. Since I don’t really know what I’m doing, I wanted to see if I’ve gone about this the right way. It seems to be giving me the desired result, but I don’t know if my edits will cause problems somewhere else.
To replace tag=”strong” in the shortcode, in collapse-o-matic.php I changed
'tag' => 'span',
to'tag' => 'strong',
Instead of using trigclass=”noarrow”, I changed
.collapseomatic { background-image: url(images/arrow-down.png); background-repeat: no-repeat; padding: 0 0 10px 16px; /*border: 1px dotted blue;*/ cursor: pointer; }
to
.collapseomatic { background-image: none; padding: 0 0 10px 16px; /*border: 1px dotted blue;*/ cursor: pointer; }
One I’m still working on is getting it to collapseall by default without needing a rel attribute.
Thanks again for this great plugin. By the way your <div> solutiion for the weird spacing issue worked for me.
Thanks,
Rodhttp://wordpress.org/extend/plugins/jquery-collapse-o-matic/
- The topic ‘Changing default behavior to reduce use of attributes’ is closed to new replies.