Reply To: Integration and compatibility issue

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Integration and compatibility issue Reply To: Integration and compatibility issue


Ernest Marcinko

Hi Filippo,

It's because there are is a custom script executed related to the old header search and it throws an error breaking further execution – because the old search is not there anymore:
The error is coming from the theme, I might still be able suggest a solution so you don't have to contact the theme author as well:

1. Open up the /wp-content/themes/orion/js/custom.js file and srcoll to line 260, which should be this:

jQuery('.headersearch .search-box input[type=text]').setCursor(0);

2. Remove that line.

This tries to focus the input field of the old search once it's opened, however it's no longer there so it encounters an error.
Also, I have noticed that the search “opener” icon is positioned absolutely by default, covering the search bar. If I may suggest the following custom CSS to fix the search bar position:

.asp_main_container {
    position: absolute;
    left: 60px;
    top: 5px;
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)