Jump to content


This topic is now archived and is closed to further replies.


Wordpress Theme Help

Recommended Posts

I am creating a wordpress theme. But on the search form i want the button to show up as an image.


Buts its not. I have tried two different methods


Method 1:

<input type="image" src="images/search.png" alt="Submit button">


Method 2:

<a href="javascript:document.myform.submit()" 
onclick="return val_form_this_page()">

<img src="images/search.png" 
width="143" height="39" border="0" alt="Submit this form" 
name="sub_but" />


Whats goin on that its not showing the image. all it shows is submit query. I have checked and the location and file type of the images is all correct. I have even tried using the exact url to the image and it doesnt work either.

Share this post

Link to post
Share on other sites
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
        	<td><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" /></td>
            <td><input type="image"  src="images/search.png" id="searchsubmit" /></td>

Share this post

Link to post
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.