From c24cb2dbe5d68745b752fe86b250196f32aa7513 Mon Sep 17 00:00:00 2001
From: Alexander_Kochon
Date: Fri, 27 Sep 2019 14:08:48 -0700
Subject: [PATCH] Search button - dropdown form
Removed search button, replaced with new search, and added CSS code to match top-header menu
---
assets/styles/style.css | 4 ++++
functions/bfc-functions.php | 11 +++--------
parts/nav-bfc-top.php | 9 +++++++++
3 files changed, 16 insertions(+), 8 deletions(-)
mode change 100755 => 100644 assets/styles/style.css
diff --git a/assets/styles/style.css b/assets/styles/style.css
old mode 100755
new mode 100644
index d08362a..77ac83a
--- a/assets/styles/style.css
+++ b/assets/styles/style.css
@@ -1161,3 +1161,7 @@ div.header-user img.avatar {
margin: 0 0 10px 0;
line-height: 1em;
}
+#bfc-topnav-search {
+ opacity: 0.6;
+ color: #1e1e1e;
+}
\ No newline at end of file
diff --git a/functions/bfc-functions.php b/functions/bfc-functions.php
index d40180c..8e1af29 100644
--- a/functions/bfc-functions.php
+++ b/functions/bfc-functions.php
@@ -182,14 +182,6 @@ function bfc_top_nav_menu_builder() {
'link_url' => '/blog/',
'icon_url' => '/wp-content/themes/bfcom/assets/images/blog.svg',
'text' => 'Blog'
- ),
- array (
- 'id' => 'bfc-topnav-search',
- 'classes' => 'search menu-item-type-post_type menu-item-object-page',
- 'parent_nav' => 'search',
- 'link_url' => '/activity/',
- 'icon_url' => '/wp-content/themes/bfcom/assets/images/search.svg',
- 'text' => 'Search'
)
);
return $menuitemarray;
@@ -226,6 +218,9 @@ function bfc_top_nav() {
$topnav .= $thismenuitem;
}
+ //Add Search button to ul
+ $topnav .= '
';
+
$topnav .= '';
echo $topnav;
diff --git a/parts/nav-bfc-top.php b/parts/nav-bfc-top.php
index cf6436c..a17b6f3 100644
--- a/parts/nav-bfc-top.php
+++ b/parts/nav-bfc-top.php
@@ -16,6 +16,15 @@
Log in