Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Replace Theme Search
- This topic has 4 replies, 2 voices, and was last updated 8 years, 8 months ago by
hatean.
-
AuthorPosts
-
September 23, 2017 at 8:55 pm #14857
hatean
ParticipantHello,
Great plugin, loving it!
I have one problem though, I cannot replace the default search with your plugin. I created an instance and set it as replacing the default but it does not work. COuld you please assist?
Best,
Yusuf.September 25, 2017 at 10:46 am #14862Ernest Marcinko
KeymasterHi Yusuf,
Thank you for your kind words!
If the automatic replacement is not working, the the theme search bar must be hard-coded to one of the theme files. I’m guessing you are reffering to the header pop-out search bar.
While customizations and installations are not part of support, I will try to help you with this as much as I can. For this reason I cannot guarantee I’m able to do this.
Can you please add temporary FTP details as well? I will try to track down the theme file that has the search code hard-coded and place it to the child theme directory, and replace it with the plugin shortcode there if possible.September 25, 2017 at 12:21 pm #14870hatean
ParticipantYou cannot access this content.
September 26, 2017 at 9:12 am #14890Ernest Marcinko
KeymasterHi Yusuf,
Thank you for the details, they worked flawlessly.
The good news is, that I was able to track down the code that is responsible to print the header form, and was able to make a change to it so now the ajax search pro shortcode is displayed instead of the default search bar.
The bad news is that it was not hard-coded into the theme, but included from one of the plugins called hybrid-composer. I guess that might be bundled with the theme or something similar. Unfortunately I had to make direct changes to one of the plugin files, as the search form was simply hard-coded there. In case that hybrid-composer plugin is updated, this change will most likely be deleted.
In that case if you need to restore it on an update event, just follow these steps:
– Open up the \wp-content\plugins\hybrid-composer\headers\menu-classic.php file via FTP
– Replace it’s contents with this: https://goo.gl/Gboqe7
And that should restore the changes.October 1, 2017 at 7:14 am #14958hatean
ParticipantHello Ernest,
You are the best! It does work flawlessly.
That is correct, Hybrid Composer comes with the theme. I will keep this in mind in case the theme is updated.
I can’t thank you enough!
Best,
Yusuf. -
AuthorPosts
- You must be logged in to reply to this topic.