Support » Fixing WordPress » Search Form button not working
7 years, 10 months ago
My search form seems to be working fine when you type a word in and hit enter. But if you were to hit the “go” button seen below, it just refreshes the page you are on. What code needs to go inside the (a href=””) to make that button do the search?
<div class="mitemr"><a href="">Go</a></div>
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<input type="text" class="searchbox" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" style="display: none;" />
You need to use the form input submit type to do anything. You’re href is empty and, therefore, going no where.
Remove the style="display: none;"
the whole point of that is to not have a physical click button, rather the word “go” be the clickable executor. if i remove the style display none, it will show the oval looking button.
You do know you can style that button to look like you want it to with CSS, right?
i didn’t know that, otherwise i probably would have done it. if you or someone else could help with that coding, i’d appreciate it.
border-bottom:1px #000000 solid;
Customize to your tastes.
awesome. i’ll try that out.
didn’t really work right. anyone else?
What about it didn’t work?