- This topic has 5 replies, 2 voices, and was last updated 4 years, 5 months ago by Sebastian.
Author | Posts |
---|---|
1101blueli
April 4, 2020 at 3:28 am
|
I have a custom style for select2 input field, because they don’t have a unique class or ID, so I only put the code: e.g: .select2-search__field { I want avoid them apply on all the site. ref thanks |
Sebastian
April 4, 2020 at 10:37 am
|
Hey, to make your Microthemer selectors page-specific you can enable the page-id modifier when creating selectors. See this video: https://screencast-o-matic.com/watch/cFVIX4olWj Please let me know if that solves your issue. Thanks! |
1101blueli
April 4, 2020 at 11:55 am
|
My selector very massing, I am still not very familiar working with MT is that mean if I put .mt-516{} to the top, the blow code will run only in this post ID? thanks //here is just part of the copy of the selector .mt-516 { } |
Sebastian
April 4, 2020 at 3:26 pm
|
Hey, I think I see what you mean – you’ve already created lots of selectors and would like to update them manually? You can edit selector code via the selectors menu at the top left. You will need to prefix each selector with .mt-515 and a space (515 is the page id I see when I visit https://rydu.com/cart/). So the code would look like this:
Notice how you have to repeat .mt-515 with selectors that use commas too. Microthemer adds a unique mt-xxx class to the body tag on every page. And so referencing that unique class will limit the scope of your selectors to the current page. Does that make sense? |
1101blueli
April 4, 2020 at 5:53 pm
|
very clear! Now I know how it works. Now I can remove those non-necessary class .rydu-checkout thanks |
Sebastian
April 6, 2020 at 9:15 am
|
OK great, please let me know if you need help with anything else 🙂 |