L
L
ligisayan2015-10-05 11:11:08
css
ligisayan, 2015-10-05 11:11:08

Why does the script override the select style?

I have a test online store on wordpress + woocommerce. Using the jQuery Form Styler library, I included $('select').styler(); and stylized the drop-down list (added to the payment checkout page for clarity).
3UxhG.png
Why is the dropdown at the very bottom of the same page the only one that is not styled across the entire site?

Rather, it is styled from the very beginning, but after a moment some script with a white veil is loaded and redefines it to the original ones.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WP Panda, 2015-10-05
@ligisayan

Because it is loaded via Ajax, and changing it is somewhat hemorrhoids.
Do this for the checkout page and add it.

setTimeout(function(){
$('select').styler();
},1500);

choose the interval yourself, so that there is no jerk

A
Alexey Tsarapkin, 2015-10-05
@Dreamka

I advise you to completely abandon this plugin, it and others like it are no longer relevant.
Selects are normally styled with CSS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question