Use Sass to style search form, remove search template
This commit is contained in:
@@ -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'));
|
||||
|
||||
@@ -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');
|
||||
Reference in New Issue
Block a user