diff --git a/themes/bootstrap3/templates/header.phtml b/themes/bootstrap3/templates/header.phtml
index 9d8da3ad06c..e607577e2bf 100644
--- a/themes/bootstrap3/templates/header.phtml
+++ b/themes/bootstrap3/templates/header.phtml
@@ -4,124 +4,119 @@ $account = $this->auth()->getManager();
?>
- layout()->renderingError)): ?>
-
+
layout()->searchbox !== false): ?>
- = $this->layout()->searchbox ?>
+ =$this->layout()->searchbox ?>
diff --git a/themes/bootstrap5/templates/header.phtml b/themes/bootstrap5/templates/header.phtml
index 9d8da3ad06c..d4888ac07f5 100644
--- a/themes/bootstrap5/templates/header.phtml
+++ b/themes/bootstrap5/templates/header.phtml
@@ -3,125 +3,118 @@
$account = $this->auth()->getManager();
?>
-
- layout()->renderingError)): ?>
-
+
layout()->searchbox !== false): ?>
- = $this->layout()->searchbox ?>
+ =$this->layout()->searchbox ?>