Title: Exclude toggle classes
Last modified: December 28, 2020

---

# Exclude toggle classes

 *  Resolved [Andy](https://wordpress.org/support/users/renderpeople/)
 * (@renderpeople)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/exclude-toggle-classes/)
 * Hi Frank,
 * I have some content on the page which should only appear/unfold, when I click
   on “MEHR LESEN”. With activated autoptimize many times the content is already
   visible when I open that page (somehow not in 100% of the cases).
 * I would like to exclude the class which is responsible for that to make sure 
   it works correctly.
    When I click on inspect I see the class <h5 class=”et_pb_toggle_title”
   >mehr lesen</h5>. Can I exclude that class from autoptimize?
 * Thanks and Happy Holidays,
    Andy
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-toggle-classes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/exclude-toggle-classes/#post-13839908)
 * Afraid AO doesn’t work by excluding classes Andy.
 * Let’s first and foremost try to identify what is breaking “Mehr lesen” by just
   disabling CSS or JS or HTML or Image optimization (incl. lazyload). Based on 
   that we can see what the next steps need to be 🙂
 * frank
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/exclude-toggle-classes/#post-13885460)
 * any update [@renderpeople](https://wordpress.org/support/users/renderpeople/)?
 *  Thread Starter [Andy](https://wordpress.org/support/users/renderpeople/)
 * (@renderpeople)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/exclude-toggle-classes/#post-13886040)
 * Yes, it was actually caused by a custom function that was using jquery (as far
   as I understood it). I managed to replace the function.
    It would have also worked
   to exclude jquery per se.
 * Thanks for asking. Great support once again!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/exclude-toggle-classes/#post-13886098)
 * happy to read all is well Andy 🙂
 * greetings from Belgium,
    frank

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

The topic ‘Exclude toggle classes’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/exclude-toggle-classes/#post-13886098)
 * Status: resolved