This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler
Hi! How i can replace main search (on home page) with Ajax search? Is it possible ?
Hello,
By default, we have Ajax search only as widget http://prntscr.com/idma6i
It is possible to replace default search in header via customization in files. You need to find a file of header structure (royal/headers/ folder) depends on what header type using on your site:
headers
admin file
1 – 1
2 – 1
3 – 1
4 – 1
5 – 1
6 – 2
7 – 2
8 – 3
9 – 1
10 – 4
11 – 4
12 – 4
13 – 5
14 – 5
15 – 1
16 – 1
17 – 6
18 – 2
and change this line http://prntscr.com/idm6p7 – etheme_search_form()
to http://prntscr.com/idm6yp –
the_widget( 'Etheme_Search_Widget', array('count' => 3, 'images' => true, 'post_type' => 'all'));
the same for figed header – royal/header.php
http://prntscr.com/idm88b
http://prntscr.com/idm8ra
Please do such changes to child theme to prevent losing it after each theme update.
Also, likely it will be needed to write some custom css code to make the search looks great, so you can replace the search in case you have appropriate PHP and CSS skills. Our support team is unable to provide support for additional customizations in files under our Support Policy – https://themeforest.net/page/item_support_policy. If you need help with additional customization contact WP-Kraken team.
Regards
BIG thnx. That all what I need.
You’re welcome!
Have a nice day.
Regards
You must be logged in to reply to this topic.Log in/Sign up