diff --git a/app/filters.php b/app/filters.php index 57a6726..d30d166 100644 --- a/app/filters.php +++ b/app/filters.php @@ -68,3 +68,10 @@ add_filter('comments_template', function ($comments_template) { ); return template_path(locate_template(["views/{$comments_template}", $comments_template]) ?: $comments_template); }, 100); + +/** + * Render WordPress searchform using Blade + */ +add_filter('get_search_form', function () { + return template('partials.searchform'); +}); diff --git a/resources/views/partials/searchform.blade.php b/resources/views/partials/searchform.blade.php new file mode 100644 index 0000000..5976069 --- /dev/null +++ b/resources/views/partials/searchform.blade.php @@ -0,0 +1,7 @@ +