Displaying search button when inserting Search widget in Template


Description: 

Once done, you’ll need to copy the searchform.php file from your parent theme to your child theme. Open up the file, then add the following code before the closing</form> tag.
<button type=”submit” class=”search-submit”><?php echo ‘Search’; ?></button>

 

.fl-widget .widget_search button.search-submit { background: #FF0; border: 1px solid #F00; color: #000; } /* Hover state */ .fl-widget .widget_search button.search-submit:hover { background: #008000; color: #F00; }




Kind:

HTML, PHP, Beaver


URL: