Archived topic
changing/modify text inside widget
3 replies · Started by generatepressuser on August 12, 2019
Hello
I have a widget where you can filter the price range as I have in my sidebar, there is also the text: "Preis:" before the amount. Is it possible to remove that text/label?
I tried many, many kind of code but it does not work. This is the last method I tried, didnt work either:
aside#woocommerce_price_filter-5.widget.inner-padding.woocommerce.widget_price_filter form > div.price_slider_wrapper div.price_slider_amount div.price_label > #text {
display:none;
}
Thank you for any suggestions.
Regards
Hi there,
Try this CSS
/* Make entire element invisible */
.woocommerce .widget_price_filter .price_label {
font-size: 0;
}
/* Just display the spans */
.woocommerce .widget_price_filter .price_label span {
font-size: 16px;
}
/* Add in the long dash between spans */
.woocommerce .widget_price_filter .price_label span:first-child:after {
content: '\2014';
margin: 0 1em;
}
Hello,
This worked perfectly, obviously its not that easy as I thought ^^
Thank you!
Glad to be of help.