Skip to content

Commit

Permalink
Merge pull request #111 from ContextInstitute/Robert
Browse files Browse the repository at this point in the history
Get single-site blog working
  • Loading branch information
iangilman authored Feb 4, 2019
2 parents 39d3e98 + 7b6ede5 commit f74c36f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions functions/bfc-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ function bfc_top_nav_menu_builder() {
array (
'id' => 'bfc-topnav-blogs',
'classes' => 'blogs menu-item-type-post_type menu-item-object-page',
'parent_nav' => 'blogs',
'link_url' => '/sites/',
'parent_nav' => 'blog',
'link_url' => '/blog/',
'icon_url' => '/wp-content/themes/bfcom/assets/images/blog.svg',
'text' => 'Blogs'
'text' => 'Blog'
),
array (
'id' => 'bfc-topnav-search',
Expand Down Expand Up @@ -237,7 +237,7 @@ function bfc_top_nav_is_active($topmenuparent) {
return true;
} elseif ($topmenuparent == 'resources' && bp_docs_is_bp_docs_page()) {
return true;
} elseif ($topmenuparent == 'blogs' && is_page('sites')) {
} elseif ($topmenuparent == 'blog' && (is_home() || is_single() )) {
return true;
} elseif ($topmenuparent == 'search' && is_page('activity')) {
return true;
Expand Down Expand Up @@ -317,7 +317,6 @@ function bfc_bottom_nav() {
$bottomnav .= $thismenuitem;
}
$bottomnav .= '</ul>';
$bottomnav .= '<p></p>';
echo $bottomnav;
}

Expand Down
File renamed without changes.

0 comments on commit f74c36f

Please sign in to comment.