- April 20, 2020 at 12:48 am #26805
I am having issues with placing a shortcode in the Ajax Search results
The URL is: https://antgrip.com
I wish to embed a contact form so that when a user searches and does not find anything, he is presented with a form calling him to action and adding him to the mailing list.
Can you please help me – I have made a full backup of the site in case you wish to change anything, but I kindly ask you to let me know what steps you took to solve the problem.
I look forward to your reply.
SamoApril 20, 2020 at 8:05 am #26807
That field does not support shortcodes unfortunately, for the reason that most shortcodes probably would not work correclty in that scope.
If adding a shortcode there is avoidable, I would rather recommend using regular HTML there, maybe putting a link to a page with the contact form(?).
If the shortcode is needed, the only way to do it is via results templating, and custom coding it there via the PHP version of that shortcode. But once again, even if you placed the form there, it probably would not work correctly – the styling and the functionality of the form would be broken, as usually those are not designed to be used in dynamically loaded content.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.