Use Sass to style search form, remove search template

This commit is contained in:
Ben Word
2015-09-22 21:06:51 -05:00
parent 2be91c1b5e
commit 9a14571814
5 changed files with 16 additions and 24 deletions

View File

@@ -34,7 +34,7 @@ function setup() {
// Add HTML5 markup for captions
// http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery']);
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
// Tell the TinyMCE editor to use a custom stylesheet
add_editor_style(Assets\asset_path('styles/editor-style.css'));

View File

@@ -1,13 +0,0 @@
<?php
namespace Roots\Sage\Utils;
/**
* Tell WordPress to use searchform.php from the templates/ directory
*/
function get_search_form() {
$form = '';
locate_template('/templates/searchform.php', true, false);
return $form;
}
add_filter('get_search_form', __NAMESPACE__ . '\\get_search_form');