Customize DDG Search Box on Homepage?

<hidden> anonymous
Created: 4 years and 7 months ago • Updated: 4 years and 7 months ago
I use the DuckDuckGo search box on my website and made the code with this tool:
Search Results can be modiefied to match the look of the website with this Params:

But is there a way to change the green icon with the white magnifier at the end of the search box on my website (can be seen at the first link)? Green does not match the theme of my website at all and I would like to have a grey or blue icon.

Right now I just cut off the icon by changing the width:
<iframe src=""style="overflow:hidden;margin:0;padding:0;width:166px;height:40px;" frameborder="0"></iframe>

But without the "search-button" it seams like something is missing - which of course is true.


This forum has been archived

Thank you all for the many comments, questions and suggestions. Particular thanks go to user x.15a2 for constantly monitoring, replying and helping so many users here. To continue these discussions, please head over to the DuckDuckGo subreddit.

Hi there,

I think I've found a way, inspired by code at Here it is:

<iframe src="" frameborder="0" id="iframe"></iframe>

<script src="sys/js/jquery.js"></script>


$('iframe').load( function() {
      .append($("<style type='text/css'>  #search_button_homepage { background-color: red; }  </style>"));


It's slightly messy, and will need tinkering but it should work.

Some notes to make: #search_button_homepage { * } styles the button as far as I can see. However, dive into the source of the page at to make sure.

To style the button, just add CSS values within the {braces} after #search_button_homepage.

Hope this makes sense,
Then, hope it works,
posted by MyUser 4 years and 7 months ago Link
So I have to add a JavaScript to change colors?
Sorry, but this is a No Go for me. Before i use JavaScript for this I just change the width to cut off the "green part". But unfortunately you have to leave some px because of the border. So there is still some green stuff or you don't have a border on the right side:
Bad enough you have to use an iframe to add the search.

Is there a chance some of the developers do find this and can add some more colors to the search box? As i can tell it is only an image and I hope it is very easy for them to add a grey, blue ... one. Or let you choose the color by rgb code entirely.
posted by <hidden> • 4 years and 7 months ago Link
Mercie beaucoup! C'est très important tes informations même pour moi!
posted by vacances64 4 years and 7 months ago Link
This comment has been removed for violation of our forum rules.
posted by <hidden> • 4 years and 7 months ago