Title: Exclude CSS Selectors
Last modified: March 4, 2019

---

# Exclude CSS Selectors

 *  Resolved [page52](https://wordpress.org/support/users/page52/)
 * (@page52)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/exclude-css-selectors/)
 * Hello,
 * Is there a way to EXCLUDE certain CSS Selectors from being affected by this plugin?
   I love that it’s smooth scrolling plus offset for menu and in-page links but 
   when using the Avada theme it affects the toggles (collapsible) negatively. Any
   way to not have the plugin apply to Avada toggles and tabs?
 * Thanks!

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

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11272684)
 * Hi,
 * You can change the “Selector(s)” option in plugin settings and include only specific
   links (i.e. the links you want). For example, you can change the “Selector(s)”
   value to:
 * `.menu-item a`
 * to have the plugin enabled only on menu links.
 * You can also use the `:not()` CSS selector in “Selector(s)” option. For instance:
 * `a[href*='#']:not([href='#']):not(.some-class)`
 * will exclude links with the class “some-class”.
 * For example, in Avada theme, in order to exclude the toggles, you could use the
   following “Selector(s)” value:
 * `a[href*='#']:not([href='#']):not([data-toggle])`
 * The next plugin version (1.6.5) will have a dedicated option for excluding selectors.
   You can test it now by downloading and activating plugin’s development version:
 * [https://downloads.wordpress.org/plugin/page-scroll-to-id.zip](https://downloads.wordpress.org/plugin/page-scroll-to-id.zip)
 * You can safely use plugin’s development version as it’s fully working, has all
   the new features and will be normally updated when version 1.6.5 is released.
 *  Thread Starter [page52](https://wordpress.org/support/users/page52/)
 * (@page52)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11272905)
 * Thank you SO much for the quick reply – this is exactly the info I needed. Thank
   you for such a great plugin 🙂
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11272930)
 * You’re welcome 🙂
 *  [halfy80](https://wordpress.org/support/users/halfy80/)
 * (@halfy80)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11379766)
 * This is really kind of you to make the next version available, however, my jQuery
   UI tabs are still jumping even after installing the version you have kindly shared…
   I am going bananas already trying to solve this… What could I be doing wrong?
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11380239)
 * [@halfy80](https://wordpress.org/support/users/halfy80/) In excluded selectors
   field, add the following selector (preceded by comma):
 * `, a[href^='#tabs-']`
 * Let me know if it worked
 *  [halfy80](https://wordpress.org/support/users/halfy80/)
 * (@halfy80)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11380342)
 * First of all, thank you so much for replying so quickly, second…. it kinda worked,
   it does not jump anymore, but it also doesn’t scroll anymore, it just moves from
   id to id without scrolling, like if it was a new page…. 🙁
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11380461)
 * [@halfy80](https://wordpress.org/support/users/halfy80/) I thought that you wanted
   it not to scroll. Switching tabs without scrolling the page is the expected/normal
   behavior. Did you want to scroll the page smoothly when clicking a tab?
 * If yes, I need to know the “Selector(s)” option value in your plugin settings.
    -  This reply was modified 7 years, 1 month ago by [malihu](https://wordpress.org/support/users/malihu/).
 *  [halfy80](https://wordpress.org/support/users/halfy80/)
 * (@halfy80)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11380614)
 * I want to scroll, but only the panels. In one of the panels I have tabs, and 
   when you switch the tabs, the things jumps up, and that is because the thing 
   understands that the tabs are a panel, but they are not… that behaviour is the
   one I want to remove…
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11381431)
 * [@halfy80](https://wordpress.org/support/users/halfy80/) I can’t really help 
   unless I see your page. Can you post your URL?
 *  [halfy80](https://wordpress.org/support/users/halfy80/)
 * (@halfy80)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11381477)
 * yes, of course, thank you so much for being so kind:
 * [http://lucilebraucks.com/airbox/](http://lucilebraucks.com/airbox/)
 * everything works great until you go to case studies, there when you click on 
   a tab, it jumps up… I was wondering if there is a way for the tab links not to
   be interpreted as scrollables… 😀
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11381492)
 * [@halfy80](https://wordpress.org/support/users/halfy80/) Go to “Page scroll to
   id” settings and add:
 * `, a[href^='#tabs-']`
 * at the end of the **excluded selectors** option field. Just copy-paste the selector(
   with the comma) and insert it at the end (keeping the existing selectors).
 * Click save changes and test the tabs. Let me know when you do the change.
 *  [halfy80](https://wordpress.org/support/users/halfy80/)
 * (@halfy80)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11385440)
 * Love you, Malihu!!!!! It worked!!!!!
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11385784)
 * [@halfy80](https://wordpress.org/support/users/halfy80/) Awesome 🙂 Thanks for
   the feedback.

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

The topic ‘Exclude CSS Selectors’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/exclude-css-selectors/#post-11385784)
 * Status: resolved