Format Search Form in Header
-
I am looking to modify my search box to have the search field to the left and the “submit” button to the right in my header. Currently, I am just calling searchform.php in my header. However, the “submit” button continues to display below the search field. There are no breaks in the code that I see.
<form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e('Search…', 'responsive'); ?>" /> <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e('Go', 'responsive'); ?>" /> </form>[Moderator Note: Please post code & markup between backticks or use the code button (note: single quotes are not the same as backticks). Your posted code may now have been permanently damaged by the forum’s parser.]
Any thoughts? Thanks!
The topic ‘Format Search Form in Header’ is closed to new replies.