Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions assets/styles/style.css
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
11 changes: 3 additions & 8 deletions functions/bfc-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -226,6 +218,9 @@ function bfc_top_nav() {

$topnav .= $thismenuitem;
}
//Add Search button to ul
$topnav .= '<li id="bfc-topnav-search" class="search menu-item-type-post_type menu-item-object-page" role="menuitem" data-toggle="search-dropdown" <p><img src="/wp-content/themes/bfcom/assets/images/search.svg" alt="Trial Search Box"/>Search</p> </li>';

$topnav .= '</ul>';

echo $topnav;
Expand Down
9 changes: 9 additions & 0 deletions parts/nav-bfc-top.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
</div>
<div class="header-topmenu">
<?php bfc_top_nav(); ?> <!-- this replaces the call to joints_top_nav(); -->
<!--- <span class="search menu-item-type-post_type menu-item-object-page" data-toggle="search-dropdown"><img src="/wp-content/themes/bfcom/assets/images/search.svg" alt="Trial Search Box"/> <p>Search</p> </span> -->
<div class="dropdown-pane" id="search-dropdown" data-dropdown data-hover="true" data-hover-pane="true" data-auto-focus="true">
<form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
<div class="input-group">
<input type="search" class="search-field input-group-field" placeholder="<?php echo esc_attr_x( 'Search...', 'jointswp' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'jointswp' ) ?>" />
<input type="submit" class="search-submit button input-group-button" value="<?php echo esc_attr_x( 'Search', 'jointswp' ) ?>" />
</div>
</form>
</div>
</div>
<?php if(! is_user_logged_in() ) : ?>
<a href="/wp-login.php?action=login">Log in</a>
Expand Down