Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Adding buttons to results
This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko 7 months, 2 weeks ago.
- AuthorPosts
- August 17, 2022 at 9:43 am #38902
Hi, 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 #38915Hi,
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.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 17, 2022 at 4:02 pm #38916Thank 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 #38917It was actually a glitch, yet unknown. The description was hidden because of the missing images, which should only happen with a specific configuration.
Best,
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.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 17, 2022 at 4:33 pm #38918Amazing, 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 #38919Sure. 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:
Best,display: inline-block;
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 17, 2022 at 4:39 pm #38920Thanks for your help today!
August 17, 2022 at 4:41 pm #38923You 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.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.