How to add a live Ajax search in WordPress or Elementor page or Elementor popup?

Implementation

Step One:

We have to add the below code to the functions.php file. It is strongly recommended to use a child theme otherwise, all your customization in functions.php will be lost after each update.

Here is the code.

A warm thanks to Maya for sharing the code. More details…

Step Two:

Place the Shortcode widget on a page or Popup template and add the below shortcode on the Shortcode widget box (left-side).


[asearch  image="true" source="post"]


[asearch  image="true" source="post"]

Example: Category page. You can adjust the style (CSS) as you like.

Leave a Comment