There are a few posts on the forum about how to integrate a duckduckgo search box, like this one:
Hello!
I found out a way to create a Site specific search which can be used in our Write.freely blogs. (had posted a topic here a month ago , about using Google’s Custom Search Engine – which cannot work for us as it requires JavaScript, not supported in standard WF instances).
DuckDuckGo has this - and it is all inside an iFrame block, which does work from a normal WF page. I have tested it and it’s even better than the Google one as we are not logging into their voracious indexing of everyone…
Alas, the URL
https://duckduckgo.com/search_box
reverts to
https://duckduckgo.com
And the various posts on the forum with examples seem to no longer have the duckduckgo search bar.
Does anyone know if duckduckgo removed this functionality or how to do this nowadays? Thanks!
It is not very elegant, and it takes you away from write.as
It’ll have to do for now:
<form class="ddg" name="x" action="//duckduckgo.com/"> <input type="hidden" value="YOURBLOGURL" name="sites"></input> <input type="hidden" value="1" name="kh"></input> <input type="hidden" value="1" name="kn"></input> <input type="hidden" value="1" name="kac"></input> <input type="search" placeholder="YOURTEXTSTRING" name="q"></input><button class="button" type="submit">duckduckgo</button></form>
Any alternative suggestions?
The inelegant form doesn’t even display for me. For example, I added this to my signature configuration:
<form class="ddg" name="x" action="//duckduckgo.com/"> <input type="hidden" value="https://underlap.org" name="sites"></input> <input type="hidden" value="1" name="kh"></input> <input type="hidden" value="1" name="kn"></input> <input type="hidden" value="1" name="kac"></input> <input type="search" placeholder="search terms..." name="q"></input><button class="button" type="submit">duckduckgo</button></form>
When I view the page source of a post, I see just this:
duckduckgo
So it seems as if writefreely is stripping out most of the form. Anyone have an alternative solution?