Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Space needed inbtween words "out of stock" & "in stock" › Reply To: Space needed inbtween words "out of stock" & "in stock"
December 20, 2022 at 3:56 pm
#40595
Keymaster
Okay, then you could probably do a trick with custom CSS and a different HTML in the advanced field. Try this in the advanced content field:
<span class="{_stock_status}"></span>
This will apply a class name instead of the actual text. Now add this custom CSS somewhere (either in your theme settings or under here):
span.instock::after {
content: 'In Stock';
color: green;
}
span.outofstock::after {
content: 'Out of Stock';
color: #ff6600;
}