I'm working with wordpress.
I'm using a search bar, with an image button for the search button.
I am unable to get the php to load the image.
I've tried combinations of includes, and _e's. via php.
Using simple 'src=images/' doesn't work either.
Anyone know how to get this to work?
I've done it via CSS, by placing my image as the background.
But the word Search still pops up overtop, and I can't get rid of that.
this is included via php.
Code:
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" />
<input type="image" src='images/go.jpg' width='86' height='27' id="go" value="Search" />
</form>
This is the css
Code:
#searchbar
{
width: 420px;
height: 36px;
float: left;
font-size: 18px;
margin: 41px 0 0 0;
}
#searchbar #s
{
width: 303px;
height: 28px;
font-size: 18px;
color: #3888e1;
background-image: url('images/search.jpg');
background-repeat: no-repeat;
float: left;
border: none;
text-indent: 8px;
}
#searchbar #go
{
float: left;
margin: 2px 0 0 10px;
}