Diego Vogel

Brazilian by birth and originally a mechanical engineer by trade, Diego switched to web development in 2017 and never looked back. He likes hot days, playing in the dirt, and secretly has a crush on CSS.

Replacing the Default Search Form in WordPress with Timber

Are you using WordPress and Timber to build a site? Need to replace the default search form? Here’s how. Step 1: searchform.php Create a file called searchform.php in your theme and put this in it: $site = new TimberSite(); allows you to get the home URL in the twig file. Step 2: searchform.twig In the /templates directory of your theme create a Replacing the Default Search Form in WordPress with Timber