Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Overriding default search and default result spage › Reply To: Overriding default search and default result spage
Hi!
Sorry for the late response, I was on a family vacation.
I see you managed to put the search shortcode to the header.php file. It was almost correct, I had to remove the surrounding form element, it was causing problems.
Also after fixing that, I’ve added the following custom CSS to reduce the width a fix the floating and margins for the home page search:
[html]/* Front page ajax search pro fixes */
#main-menu-wrapper .asp_main_container {
width: 200px !important;
height: auto !important;
margin-top: 12px !important;
}[/html]
That reduces the width for the search to a correct 200px to fit into that space, but only for the header search instance.