WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
Defaulting to expanded (6 posts)

  1. ac04388
    Member
    Posted 1 year ago #

    I'm using this plugin on ariellecoambes.com under the resume tab. I want to viewers to be able to expand the bulletted info under each of my positions (there are no bulletted lists yet, though).

    For some reason, the plugin is opening an automatically expanded view. How do I make it default to collapsed?

    Here is the code I've used, maybe that's the problem:

    [expand title="More on this position"]
    -job duty 1
    -job duty 2
    -job duty 3[/expand]

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

  2. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    It does default to collapse. Can you share a link to the page you are working on? sounds like jQuery is not loading properly.
    Update: We see you actually did share a link: http://ariellecoambes.com/resume-3

    And it looks like the content is being loaded in dynamically via Ajax. Are you using a special plugin or theme on your site? Do you know if you can trigger a callback function once the content is loaded?

  3. ac04388
    Member
    Posted 1 year ago #

    Yes, I am using Themeforest's Cascade theme.

    I'm no WordPress whiz -- I don't know if I can "trigger a callback function once the content is loaded." Any chance you could help?

  4. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    The 'Cascade' theme comes with support, but a purchase code is required for registration. If you have one, please register for support here: http://support.quanticalabs.com/forum

    If your theme came with documentation, you might look through that for some info on triggering a callback function when the content loads.

    Finally, if all of this seems a bit overwhelming, we offer a very reasonable support option. Order the support pack and we will figure out your theme and get things working for you.

    Either way, let us know if you get stuck!

  5. katzka
    Member
    Posted 1 year ago #

    Hi
    I am using the Roll-your-own method with <div> targets and id
    all is working excellent, i just want that the first item be expanded by default than close when i click the second one
    The expanded="true" attribute as it is a <div> not a shortcode
    Please help me out with this problem

  6. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    katzka: Sounds like a different issue than the topic of this thread.
    Regardless, all you need to do is add the class colomat-close to the first trigger element:

    <div id="monkey" class="collapseomatic colomat-close">Trigger Text</div>
    <div id="target-monkey" class="collapseomatic_content">Content</div>

    Next time, please start a new thread, thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.