Float searchform to the right in navbar
-
Hi,
I’ve added a search form to my navigation bar via this function:
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(); $items .= '<li>' . $searchform . '</li>'; return $items;
The problem no matter how I try the form won’t float to the right. I get the feeling that it’s a specificity issue, but don’t know exactly what’s amiss.
Link: http://www.ajmk.lt
*Currently there is no code forfloat:right;
in style.css .
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Float searchform to the right in navbar’ is closed to new replies.