Title: Expansion always open
Last modified: October 6, 2016

---

# Expansion always open

 *  Resolved [Micha85](https://wordpress.org/support/users/micha85/)
 * (@micha85)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/)
 * Hi,
    Could you please check this page of mine: [http://travelintense.com/eco-travel-destinations/united-states/eco-tour-operators/](http://travelintense.com/eco-travel-destinations/united-states/eco-tour-operators/)?
   My readers should actually not see the image that says “10% discount…” until 
   they click on the phrase “Exclusive 10% discount code available for our readers–
   click here!”. It used to be like this, but now the discount image is always visible.
   What do I need to do to get the image hidden again, until somebody clicks on 
   it? Thanks a lot, Michaela

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

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/#post-8272624)
 * Your page is throwing the following JavaScript error:
    `sb-instagram.min.js?ver
   =1.4.8:3 Uncaught TypeError: jQuery is not a function`
 * This is being caused by the instagram-feed plugin:
 *     ```
       <script type='text/javascript' src='http://travelintense.com/wp-content/plugins/instagram-feed/js/sb-instagram.min.js?ver=1.4.8'></script>
       ```
   
 * Try deactivating this plugin and see if this fixes your issue.
 *  Thread Starter [Micha85](https://wordpress.org/support/users/micha85/)
 * (@micha85)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/#post-8275697)
 * Hi Baden,
    Thanks for the suggestion. I have deactivated the instagram feed now,
   but the problem is still there. Any of these pages, that should have an expandable
   section show the hidden part right away: [http://travelintense.com/eco-travel-destinations/united-states/eco-tour-operators/](http://travelintense.com/eco-travel-destinations/united-states/eco-tour-operators/)
   [http://travelintense.com/eco-travel-destinations/indonesia/eco-lodges-in-indonesia/](http://travelintense.com/eco-travel-destinations/indonesia/eco-lodges-in-indonesia/)
   Any other idea what could cause this issue? Cheers, Michaela
 *  Thread Starter [Micha85](https://wordpress.org/support/users/micha85/)
 * (@micha85)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/#post-8275723)
 * Hi Baden,
    I played around with some other plugins a little more, and I found
   the culprit: it’s the Boxzilla plugin. As soon as it’s deactivated, your plugin
   Collapse-O-Matic works fine. I’ll send them another message. They really seem
   to have a major bug in their coding. It’s not only that it breaks yours, but 
   it also breaks my Instagram Feed by Smashballoon. I’ll search for another free
   and good pop-up option now to promote my newsletter sign up and facebook followers.
   If you know of any, just let me know. Cheers, Michaela
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/#post-8276550)
 * Thanks for getting back to us. Happy to see you found the source of the issue.
   
   We’ll mark this issue as resolved, but don’t hesitate to hit us back if you require
   any further assistance.
 *  [emmaschwemma](https://wordpress.org/support/users/emmaschwemma/)
 * (@emmaschwemma)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/#post-8276791)
 * Hi Baden,
 * I have the same problem as Michaela, but I can’t get it fixed.
    I used Collapse-
   O-Matic on this page: [http://www.overeen.be/families-en-particulieren/aanbod/](http://www.overeen.be/families-en-particulieren/aanbod/)
   Under the trigger text ‘lees meer’, the collapsed text is automatically displayed
   instead of hidden. When I refresh the page, it is indeed hidden (as I want it
   to be). But when I open the page in a new window, the text is displayed again(
   until I refresh and so on …).
 * What do I need to do to get this fixed?
    Thanks a lot!
 * Emma
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/#post-8283367)
 * Hello Emma,
    This is a very common issue these days. The reason is due to how
   the content is being loaded. When you switch pages, the content is loaded dynamically
   via AJAX. Since the ‘page’ has already loaded, the function that triggers the
   initial collapse has already been called.
 * You need to check your theme for a ‘callback’ that allows you to trigger the 
   collapse_init() function once the new content successfully loads. Check your 
   theme’s documentation, or open a support thread if you can not find it. If your
   theme does not offer a callback, we can guide you on how to create a work-around.

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

The topic ‘Expansion always open’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [expand](https://wordpress.org/support/topic-tag/expand/)

 * 6 replies
 * 3 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/expansion-always-open/#post-8283367)
 * Status: resolved