summaryrefslogtreecommitdiff
path: root/searchform.php
diff options
context:
space:
mode:
Diffstat (limited to 'searchform.php')
-rw-r--r--searchform.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/searchform.php b/searchform.php
new file mode 100644
index 0000000..d4e3435
--- /dev/null
+++ b/searchform.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * The template for displaying search forms in Underscores.me
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+?>
+
+<form class="form-inline my-2 my-lg-0 float-none float-sm-right" method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
+ <label class="sr-only" for="s"><?php esc_html_e( 'Search', 'understrap' ); ?></label>
+ <div class="input-group">
+ <input class="field form-control" id="s" name="s" type="text"
+ placeholder="<?php esc_attr_e( 'Den Blog durchsuchen&hellip;', 'understrap' ); ?>" value="<?php the_search_query(); ?>">
+ <span class="input-group-append">
+ <button class="btn btn-dark my-2 my-sm-0" id="searchsubmit" name="submit" type="submit"><i class="material-icons">search</i></button>
+ </span>
+ </div>
+</form>