Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Adding buttons to results
- This topic has 7 replies, 2 voices, and was last updated 3 years, 9 months ago by
Ernest Marcinko.
-
AuthorPosts
-
August 17, 2022 at 9:43 am #38902
alinahomecare
ParticipantHi, is there any way to customise what info shows on my results besides displaying a description? I’d really like to add a ‘Call us’ button to each result with a link to a phone number. Is that possible?
August 17, 2022 at 3:39 pm #38915Ernest Marcinko
KeymasterHi,
Yes – you can use the advanced title and content fields for that. That field supports custom HTML, so you can basically add anything you want to it.
August 17, 2022 at 4:02 pm #38916alinahomecare
ParticipantThank you, that’s great. However, it creates a new issue that when I disable ‘display image’ to hide the image on the results, it also hides the description and custom field? Is this a glitch?
August 17, 2022 at 4:30 pm #38917Ernest Marcinko
KeymasterIt was actually a glitch, yet unknown. The description was hidden because of the missing images, which should only happen with a specific configuration.
I have made a direct change to the plugin code to correct that, and we will include it in the next release. It should work fine now.August 17, 2022 at 4:33 pm #38918alinahomecare
ParticipantAmazing, thanks. One final thing, I’ve added buttons to the description field but the description field is cropping the buttons because the height isn’t large enough. I can’t find a way to edit the height to stop this happening, I’ve looked through documentation but can’t fnd a way. Please can you advise?
August 17, 2022 at 4:38 pm #38919Ernest Marcinko
KeymasterSure. There are many ways to address this, but in your case the buttons are inline elements, which follow the line height, which is 1.5 em on the page. I suggest probably changing the buttons to inline-block when styling them:
display: inline-block;August 17, 2022 at 4:39 pm #38920alinahomecare
ParticipantThanks for your help today!
August 17, 2022 at 4:41 pm #38923Ernest Marcinko
KeymasterYou are welcome 🙂
If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.
If you like the plugin and have not rated already, feel free to leave a rating on your codecanyon downloads page, it’s greatly appreciated.
-
AuthorPosts
- You must be logged in to reply to this topic.