Hi
My website is http://www.ultimech.com/wordpress
The theme I am using now, for some reason, does not show search box but I know that it would appear in the middle of blog area(latest updates do that but I like the old one). I have added the code below and it now appears right next to the top menu where I want it to be:
add_filter(‘wp_nav_menu_items’,’add_search_box’, 10, 2);
function add_search_box($items, $args) {
ob_start();
get_search_form();
$searchform = ob_get_contents();
ob_end_clean();
if( $args->theme_location == ‘Header’ )
$items .= ” . $searchform . ”;
return $items;
}
I would like to push it to the end right as it appears just next to the last link. I tried with CSS but nothing works. Would you be so kind as to help me out?
Also I have noticed that the size of the search box changes if I use IE as it becomes bigger. Does anyone know the reason?
Thank you so much in advance and look forward to hearing from you.
Max