Jump to content

Wordpress Theme Help


papillonstudios

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()" 
onmouseover="document.myform.sub_but.src='images/search.png'" 
onmouseout="document.myform.sub_but.src=images/search.png'" 
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.

Link to comment
Share on other sites

<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<div>
<table>
    	<tr>
        	<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>
        </tr>
    </table>
</div>
</form>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.