Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search bar breaking site when inserted in modal window › Reply To: Search bar breaking site when inserted in modal window
Hi!
Thank you for the details, they helped me a lot!
I have found the problem. The quotes in the shortcode were invalid characters, probably generated when it was copy/pasted. I’ve corrected the code, plus I added a style for the old search to be hidden 🙂
—
I’ve also noticed that the search checkboxes were not working, because of a 3rd party theme script called jQuery uniform. It basically wraps up every checkbox and radio button on the page within a container for better styling – touching the search layout as well irresponsibly, causing it to malfunction and not to display them.
I had to make the following corrections in the wp-content\themes\motors\assets\js\app.js file on line 236, changed from:
$(":checkbox,:radio").uniform({});
to:
$(":checkbox,:radio").each(function(){
var parent = $(this).parent();
var i = 0;
while ( !parent.hasClass('wpdreams_asp_sc') ) {
i++;
if ( i > 10 ) {
$(this).uniform({});
break;
}
parent = parent.parent();
}
});
This change of course is not permanent, once the theme is updated it will disappear. I will try to come up with a better workaround for the upcoming release. I assume other theme developers are using this script as well for some reason, so I better look into it.
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)