Closed (fixed)
Project:
Autocomplete Node Finder
Version:
6.x-2.9
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2008 at 22:38 UTC
Updated:
21 Feb 2009 at 10:38 UTC
How would I go about adding an image for the submit button?
Comments
Comment #1
danielb commentedThe easiest way is with some CSS
more css suggestions in http://drupal.org/node/313807
You could also put a proper image button in with a theme function if you know what you're doing, but I can't really help much with theming. Try some of these links
http://drupal.org/node/62647
http://drupal.org/node/144758
http://www.tomconstant.com/2008/01/09/adding-image-submit-buttons-in-dru...
http://mydrupalblog.lhmdesign.com/theming-search-submit-button-css-cross...
http://www.ampsoft.net/webdesign-l/image-button.html
Comment #2
shadow_jh commentedI ended up using some php in my page.tpl.php to publish a modified block. Do you think anything would be wrong with this approach?
print str_replace("type=\"submit\"", "type=\"image\" src=\"".$base_path."themes/zen/zen/images/company-search-button.jpg\"", $company_search);Comment #3
shadow_jh commentedI ended up using some php in my page.tpl.php to publish a modified block. Do you think anything would be wrong with this approach?
print str_replace("type=\"submit\"", "type=\"image\" src=\"".$base_path."themes/zen/zen/images/company-search-button.jpg\"", $company_search);Comment #4
danielb commentedI guess it's not the best way, might affect other forms, but if that's the only block in the region then you are probably fine.
Comment #6
sytru commentedThanks for this hint. Works perfectly for me.