Title: Toggle class
Last modified: August 31, 2016

---

# Toggle class

 *  [decoupe2psd](https://wordpress.org/support/users/decoupe2psd/)
 * (@decoupe2psd)
 * [10 years ago](https://wordpress.org/support/topic/toggle-class/)
 * Hello,
 * This is not a bug, but it would be great if there was a toggle on the fixed div
   so that we can manage to add some css whether or not the menu is sticked or not
   🙂
 * Great job otherwise 🙂
 * [https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/](https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/)

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

 *  [Mary](https://wordpress.org/support/users/marypop/)
 * (@marypop)
 * [10 years ago](https://wordpress.org/support/topic/toggle-class/#post-7421333)
 * This would be great 🙂
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [10 years ago](https://wordpress.org/support/topic/toggle-class/#post-7421357)
 * I thought about adding this in the new version, but I couldn’t find a proper 
   way of assigning styles to the sticky element to override any existing styles(
   at least without using “!important”) and make it an option in the plugin settings
   screen that wouldn’t be too confusing. Another reason why I didn’t include it,
   is because I wondered “_why add a CSS box in the settings, when the CSS can just
   as easily be added to the actual CSS file?_“
 * I’m definitely still looking into this, but in the meantime, I think you can 
   use this format and add it to your own CSS file.
 *     ```
       .sticky-element-original:not(.sticky-element-active) {
          /* your CSS styles here */
       }
       ```
   
 * If you’re using Legacy Mode in the plugin, then this would do the trick:
 *     ```
       .sticky-element-cloned {
          /* your CSS styles here */
       }
       ```
   
 * Not an ideal situation, but I hope it helps for the time being.
 *  Thread Starter [decoupe2psd](https://wordpress.org/support/users/decoupe2psd/)
 * (@decoupe2psd)
 * [10 years ago](https://wordpress.org/support/topic/toggle-class/#post-7421562)
 * Hello, Well I guess it’ll work. For non WordPress website we use : [http://stickyjs.com/](http://stickyjs.com/)
   🙂
 *  [Mary](https://wordpress.org/support/users/marypop/)
 * (@marypop)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/toggle-class/#post-8280746)
 * The only thing I was wanted is that there is a different class name when the 
   div is sticky and when it’s normal.
 * But thanks, I’ll try this 🙂
    -  This reply was modified 9 years, 8 months ago by [Mary](https://wordpress.org/support/users/marypop/).

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

The topic ‘Toggle class’ is closed to new replies.

 * ![](https://ps.w.org/sticky-menu-or-anything-on-scroll/assets/icon-256x256.gif?
   rev=2564941)
 * [Sticky Menu & Sticky Header](https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mary](https://wordpress.org/support/users/marypop/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/toggle-class/#post-8280746)
 * Status: not resolved