Twitter Bootstrap 4 WordPress Starter Theme for Developers

Theme File: searchform.php

Name: searchform.php

Path: devdmbootstrap4/searchform.php


The template file for the WordPress search form that is tailored to us Bootstrap 4. It is looked for whenever you call get_search_form().

<form role="search" method="get" class="search-form form" action="<?php echo esc_url(get_site_url()); ?>">
    <div class="input-group">
        <span class="sr-only"><?php echo esc_html('Search for','devdmbootstrap4'); ?></span>
        <input type="search" class="search-field form-control" placeholder="<?php echo esc_attr('Search ...','devdmbootstrap4'); ?>" value="" name="s" title="<?php echo esc_attr('Search for:','devdmbootstrap4'); ?>">
              <span class="input-group-btn">
                <button class="btn btn-primary search-submit" type="submit" value="Search"><span class="fa fa-search"></span></button>