- Total Members: 264,791
- Threads: 454,273
- Posts: 1,063,747
Great community. Great ideas.
Welcome to SEOChat, a community dedicated to helping beginners and professionals alike in improving their Search Engine Optimization knowledge. Sign up today to gain access to the combined insight of tens of thousands of members.
-
Apr 24th, 2012, 10:55 PM
#1
CSS and PHP Help?!
Hello, I recently changed all the form submit buttons to images by changing their PHP file (nav-search.php and searchform.php) and by changing the style sheet from subscribe_box input[type=submit] to subscribe_box input[type=image]. My problem now is that I want to do this with my subscribe widget that came with my current theme. I can find it in my style sheet as:
widget_subscribe_box input[type=submit]
Although, I have no idea where the PHP file is so I can add the image url. For the other ones I added this to the PHP file:
<input type="image" src="/wp-content/uploads/2012/04/fp-2011-search-btn-done.png" value="Search" alt="Search" />
How can I do this?! Either by calling the image in my style sheet or finding the php file.
Thank you!
-
Apr 28th, 2012, 09:25 PM
#2
<input type="image" src="/wp-content/uploads/2012/04/fp-2011-search-btn-done.png" value="Search" alt="Search" />
why?
Certanly, this do it.
<input type="image" src="<? echo $_REQUEST['image'] ?>" value="Search" alt="Search" />
-
Jun 18th, 2012, 06:43 PM
#3
How does that work? If you request the 'image' would it automatically be called? I doubt.
-
Jun 19th, 2012, 04:30 PM
#4
The code is right!
$imgfile1=<img src="file1" width="1024" height="768" alt="alt"> <input type="image" src="<? echo $_REQUEST['$imgfile1'] ?>" value="Search" alt="Search" />
Something like that would do it