• Resolved Ibby

    (@ibby)


    Hi,

    I’m having a little trouble designing a page using external triggers to expand/collapse a div. I appreciate that the default state of content wrapped in the “collapseomatic_content” class is supposed to be collapsed, but I find that my content is by default expanded. I know the scripts are loaded at the end of the page load cycle, but even if I refresh the page, the content still remains expanded (leading me to believe that the default state actually is expanded for some reason). I tried adding the “colomat-close” class to my button but this did not work.

    Page here: http://www.glam-ldn.com/services-testing/

    Any help is much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author twinpictures

    (@twinpictures)

    if you are using the roll-your-own method, be sure the ‘only load scripts when shortcode is present’ option is turned OFF in the plugin options page.

    Also is your content being loaded dynamically via a AJAX call or something like that? If so you’ll need to see if there is a callback that can be hooked into once the content has successfully loaded.

    Your link is only visible to logged in users, ‘coming soon’ plugin we assume.

    Thread Starter Ibby

    (@ibby)

    Ah yes, sorry, I forgot to disable the coming soon plugin.

    I’ve found a work around by setting the default display state to ‘none’. It’s actually working quite nicely!

    Thanks for your help.

    Plugin Author twinpictures

    (@twinpictures)

    glad you got it worked out.
    we’ll go ahead and mark this issue as resolved.
    hit us back on a new thread if you need any further assistance.

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

The topic ‘Roll-your-own with default state collapsed’ is closed to new replies.