MWDelaney / bootstrap-3-shortcodes

WordPress shortcodes for easier use of Bootstrap elements in your content.
https://wordpress.org/plugins/bootstrap-3-shortcodes/
MIT License
377 stars 118 forks source link

Collapse With Type Affects "Active"-State #72

Closed JD-Robbs closed 10 years ago

JD-Robbs commented 10 years ago

Hi there,

I'm really liking the looks of this, nice work! :-)

However, if you create a collapsible such as:

[collapse title="Collapse 1" active="true" type="primary"]
Text
[/collapse]

Then it will receive the class "inprimary" instead of "in primary". Therefore, it's not possible to create panels that are open by default when applying one of the styles (default, primary, warning, danger, etc.).

Best wishes, ClientEngage

MWDelaney commented 10 years ago

Thank you for reporting this! It turns out there was also an error in the documentation and example code for [collapse] which this helped me track down, too!

7a27dfe3cda054ffdf7abb924d73ad000397cbef should resolve this issue for you.