WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
[resolved] Make only the arrow expand content (5 posts)

  1. TobiasR
    Member
    Posted 1 year ago #

    Hello,

    I'd like to have the title be a link to a page and just the arrow expand the target content. Is there an easy way to make that happen?

    Thanks for the great plugin!
    Tobias

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    You will need to roll-your-own like so:

    <span class="collapseomatic" id="textfree"></span><a href="http://plugins.twinpictures.de/" target="_blank">This is a link</a>
    <div id="target-textfree" class="collapseomatic_content">This is some content</div>

    Demo: http://spacedonkey.de/570/collapse-o-matic-arrow-only-trigger-test/

    Please let us know if this gets you pointed in the right direction.

  3. TobiasR
    Member
    Posted 1 year ago #

    Hi Baden,

    That's exactly what I need! Sorry I couldn't figure it out from your excellent documentation. Thanks for the example to get me going, it's working nicely on our site.

    Tobias

  4. blakebh
    Member
    Posted 8 months ago #

    How can you do nesting with this method?

  5. Baden
    Member
    Plugin Author

    Posted 8 months ago #

    Something like:

    <span class="collapseomatic" id="textfree"></span><a href="http://plugins.twinpictures.de/" target="_blank">This is a link</a>
    <div id="target-textfree" class="collapseomatic_content">This is some content with
    <span class="collapseomatic" id="nested1"></span><a href="http://plugins.twinpictures.de/" target="_blank">a nested link</a>
    <div id="target-nested1" class="collapseomatic_content">This is some nested content</div>
    </div>

    Should work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic