Sunday, March 27, 2022

A working search box

For whatever reason, the DuckDuckGo search box that I’ve had in the sidebar for several years no longer works. As Elaine said, it DuckDuckWent. The DDG page for making a search box is gone, and I’ve been unable to make a new working search box with an independent generator. It all makes me think that the company has disabled embedding. So I’ve switched back to a Google search box.

Blogger being Blogger, the code for the search widget is crummy. And the code is invisible in the Layout window. But if you’re willing to edit the HTML for a Blogger template, you can make things nice. Go to Theme, choose Edit HTML, click on the pile of boxes to find and select the Search widget (labeled BlogSearch1), and change

cellpadding='1' cellspacing='1' to

cellpadding='3' cellspacing='3'.

That’ll give the search box a proper left side and make a little more space between the box and the button.

Before:


After:


[If conspiracy theorists are indeed turning to DuckDuckGo, the company might have good reason to disable embedding.]

comments: 0