Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Styling of Search box not adhering › Reply To: Styling of Search box not adhering
March 12, 2014 at 2:54 pm
#1347
Keymaster
Hi!
The styling of the outlining div needed to be reduced from 360 px to 310 px in the template header.php file, now it fits.
I also added a few lines after the wp_head() call, to make sure, that the window.resize event is called after the user clicks the search icon, so the text input of the ajax search fixes itself:
<script>
aspjQuery(document).ready(function(){
aspjQuery('#NavSearchLink').click(function(){
aspjQuery(window).resize();
});
});
</script>
Please backup the header.php file from your template in case you need to reinstall it, so the changes persist 🙂