Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Show ACF value on Seach result? › Reply To: Show ACF value on Seach result?
December 18, 2018 at 10:05 am
#20455
Keymaster
Hi!
I think that’s doable. Just wrap the price value within a span element (or anything you need) with a class in the advanced title field, so it’s easily targetable, something like:
<span class='my_price_val'>{your_price_field_here}</span>
Then CSS with media queries:
/* Desktop default*/
.asp_r span.my_price_val {
display: block;
}
/* Devices below 720px */
@media screen and (max-width: 720px) {
.asp_r span.my_price_val {
display: inline-block;
}
}
This is how I would do it.