Change Search Icon

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Change Search Icon

Postby covermesongs » 29 Apr 2010, 18:05

Small question, but I'm wondering how to change the icon next to the "search" window. I've created a brown theme with a brown magnifying glass to match, but I can't figure out how to replace the blue one. The relevant code seems to be:

Code: Select all
.searchform input.searchsubmit[type="submit"] {
background:url("images/search-button-rblue.png") no-repeat scroll 0 0 transparent;
}


But replacing the url with "images/search-button-brown.png" (the name of my image, which I placed in the same image folder, does nothing. The site in question is http://www.covermesongs.com.

Thanks!
covermesongs
 
Posts: 49
Joined: 27 Mar 2010, 17:16

Re: Change Search Icon

Postby Connie » 29 Apr 2010, 23:19

well,

your site still show

Image

there is no brown graphic file around.

did you notice that there are 2 different-search-button images? one a PNG and one a GIF?
Both are still blue...

you are using the royal-blue-theme and there the search-button-rblue.png is still defined

did you really edit the css?
did you save the editing?
Did you edit it locally and forgot to upload it?

It is not a good idea to edit one of the "standard"-css-files which come with the theme as any upload will overwrite them!(Mantra, Mantra, Mantra......)

so what can you do?

set your definitions in the custom CSS area:

Code: Select all
.searchform input[type="submit"].searchsubmit {
   background: url(images/search-button-brown.png) no-repeat 0 0;
}
* html #right-header-widgets .searchsubmit, * html #left-header-widgets .searchsubmit, * html #top-bar-right-widgets .searchsubmit, * html #top-bar-left-widgets .searchsubmit,
* html #sidebar .searchsubmit, * html #sidebar-2 .searchsubmit, * html #horizontal-outer-widgets-1 .searchsubmit, * html #horizontal-outer-widgets-2 .searchsubmit {
   background: url(images/search-button-brown.gif) no-repeat 0 0;
}
User avatar
Connie
 
Posts: 1163
Joined: 10 Nov 2009, 04:53

Re: Change Search Icon

Postby covermesongs » 30 Apr 2010, 18:36

Quick notes:
1) Yes, I created a brown PNG and GIF file and uploaded them to the images folder.
2) I didn't edit the CSS directly; I used Custom Includes. And yes, I saved.

Thanks for the code idea, but adding that to Custom Includes that didn't work either. The blue icon is still there. Frustrating!
covermesongs
 
Posts: 49
Joined: 27 Mar 2010, 17:16

Re: Change Search Icon

Postby sayontan » 30 Apr 2010, 20:32

Hmm... this is actually a remnant of a pesky bug I introduced in 3.4.7. See here for the fix: viewtopic.php?f=2&t=1542#p6891. After applying the fix save the "Custom Includes" options again.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Change Search Icon

Postby covermesongs » 01 May 2010, 07:27

sayontan wrote:Hmm... this is actually a remnant of a pesky bug I introduced in 3.4.7. See here for the fix: viewtopic.php?f=2&t=1542#p6891. After applying the fix save the "Custom Includes" options again.

Great, thanks S, worked perfectly! Will I have to redo this every time I upgrade?
covermesongs
 
Posts: 49
Joined: 27 Mar 2010, 17:16

Re: Change Search Icon

Postby sayontan » 01 May 2010, 08:33

No, I submitted a fix to WP 3 days back, but they haven't approved it yet. The fix addresses this issue.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Support Requests

Who is online

Users browsing this forum: donaldogx, dymnluldefe, Google [Bot], HeiseFups, kqpaffto and 6 guests