Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Show ACF value on Seach result?
- This topic has 13 replies, 2 voices, and was last updated 7 years, 5 months ago by
gianghl1983.
-
AuthorPosts
-
December 16, 2018 at 3:10 am #20413
gianghl1983
ParticipantHi,
How can I show ACF value on search drop down result on each item (Price, Number of Rooms….)
Thank you!
December 17, 2018 at 12:58 pm #20419Ernest Marcinko
KeymasterHi!
By using the advanced title and content fields.
December 18, 2018 at 2:36 am #20446gianghl1983
ParticipantFound it, thank you!
December 18, 2018 at 2:48 am #20447gianghl1983
ParticipantIs there any way to CSS diferently Search Result for Mobile/PC?
I also want to display result differently by CSS on small Search Form..:D
Thank you!
-
This reply was modified 7 years, 5 months ago by
gianghl1983.
December 18, 2018 at 9:31 am #20451Ernest Marcinko
KeymasterHi!
With CSS media queries it could be possible to some level. It depends on what exactly do you want to change. Let me know, and I might be able to suggest a set of custom CSS rules to help you out.
December 18, 2018 at 9:58 am #20452gianghl1983
ParticipantThanks! But Media Query I dont think will work in this case.
I have 2 search form (Same search form) for Header (Long form) and Sticky Header (Short form). I want to CSS result differently for both form.
E.e: I want to display my Price Value Inline-block in long form but Block in Short…
Thank you!
December 18, 2018 at 10:05 am #20455Ernest Marcinko
KeymasterHi!
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.
December 18, 2018 at 10:20 am #20456gianghl1983
ParticipantNo, actually this is the same screen. One search form display in sticky header(Width reduced) and one form in normal header (width long)
I want to target those form on the PC, not form in different view screens (PC/Mobile)
Thanks!
December 18, 2018 at 3:45 pm #20462Ernest Marcinko
KeymasterWell, I am not sure if this is possible then. Maybe using a custom script + CSS in some way, but might not be possible. If you want, you can include a link where I can see this, and might be able to suggest something.
December 19, 2018 at 6:15 am #20470gianghl1983
ParticipantDecember 19, 2018 at 1:16 pm #20487Ernest Marcinko
KeymasterHi!
Thank you, it turns out those are two separate outputs, and luckily the plugin automatically marks each instance from the same shortcode with a number, so custom CSS will work.
To target elements within the ‘small’ search, use the .asp_r_2_1 parent class, like so:
.asp_r_2_1 .your_target_class { /* code here */ }This will target the .your_target_class within the small search only.
-
This reply was modified 7 years, 5 months ago by
Ernest Marcinko.
December 19, 2018 at 2:54 pm #20495gianghl1983
ParticipantGreat! Thank you for rescure me, lol!
Have a nice day!
December 19, 2018 at 2:59 pm #20497Ernest Marcinko
KeymasterYou cannot access this content.
December 19, 2018 at 3:03 pm #20498gianghl1983
ParticipantSure, thank you ;)!
-
This reply was modified 7 years, 5 months ago by
-
AuthorPosts
- The topic ‘Show ACF value on Seach result?’ is closed to new replies.