Put search form into the header

If your theme doesn’t contain header widget area, you can add search form into the site header programmatically. Put the following code into your child theme header.php file in the place where you want to display the form on the website:

<?php echo BABE_html::get_search_form('Form title'); ?>


This site uses cookies to enhance your user experience and analyse traffic to improve this website. By clicking any link on this page you are giving your consent for us to set cookies. Please, see our Privacy Policy for additional information.
Scroll to top