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