EkoJr के जवाब देने के लिए कुछ और जानकारी जोड़ने के लिए के रूप में, भंडारण का एक उदाहरण Jquery UI v1.11.4 यदि आप संपूर्ण JQuery UI सीएसएस स्टाइलशीट जोड़ते हैं, तो यह डिफ़ॉल्ट वर्डप्रेस थीम स्टाइल को तोड़ सकता है।
तो, आप केवल स्लाइडर घटक से संबंधित सीएसएस वर्ग जोड़ सकते हैं। (: इन ui-अंधेरे विषय के लिए निर्माण कर रहे हैं टिप्पणी): यहाँ कक्षाएं मैं उपयोग किया जाता है
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
border: 1px solid #666666;
/* this image is from the ui-darkness theme, use the one you'd like */
background: #555555 url("img/jquery-ui/ui-bg_glass_20_555555_1x400.png") 50% 50% repeat-x;
font-weight: bold;
color: #eeeeee;
}
.ui-slider-horizontal .ui-slider-handle {
top: -.3em;
margin-left: -.6em;
}
.ui-slider .ui-slider-handle {
position: absolute;
z-index: 2;
width: 1.2em;
height: 1.2em;
cursor: default;
-ms-touch-action: none;
touch-action: none;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
border-bottom-right-radius: 6px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
border-bottom-left-radius: 6px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
border-top-right-radius: 6px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
border-top-left-radius: 6px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
border-bottom-right-radius: 6px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
border-bottom-left-radius: 6px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
border-top-right-radius: 6px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
border-top-left-radius: 6px;
}
.ui-widget-content {
border: 1px solid #666666;
/* this image is from the ui-darkness theme, use the one you'd like */
background: #000000 url("img/jquery-ui/ui-bg_inset-soft_25_000000_1x100.png") 50% bottom repeat-x;
color: #ffffff;
}
.ui-widget {
font-family: Segoe UI,Arial,sans-serif;
font-size: 1.1em;
}
.ui-slider-horizontal {
height: .8em;
}
.ui-slider {
position: relative;
text-align: left;
}
इसके अलावा, कृपया ध्यान दें कि आप कर सकते हैं उपसर्ग अपने कंटेनर आईडी के साथ उन वर्गों। उदाहरण के लिए, यदि आपका स्लाइडर आईडी 'स्लाइडर', उपयोग किया है:
#slider .ui-state-default,
#slider .ui-widget-content .ui-state-default,
#slider .ui-widget-header .ui-state-default {
border: 1px solid #666666;
/* this image is from the ui-darkness theme, use the one you'd like */
background: #555555 url("img/jquery-ui/ui-bg_glass_20_555555_1x400.png") 50% 50% repeat-x;
font-weight: bold;
color: #eeeeee;
}
....ETC
+1 सामान्य स्टाइलशीट के साथ प्लगइन को छेड़छाड़ करने के बजाय सीडीए का सुझाव देने के लिए +1 – BryanH
ऑटो अपडेटिंग: 'वैश्विक $ wp_scripts; wp_enqueue_style ("jquery-ui-css", "http://ajax.googleapis.com/ajax/libs/jqueryui/{$wp_scripts->registered['jquery- ui-core '] -> ver}/themes /ui-lightness/jquery-ui.min.css "); 'संस्करण WP में समान है (वर्तमान में 1.10.3)। – Ciantic
असल में, मुझे केवल संवाद सीएसएस की आवश्यकता थी। 'Wp_enqueue_style (" wp-jquery-ui-dialog ") का प्रयोग करें;' – FooBar