From 986b5a7f63a2745d87920040f18de8128fb2dbd6 Mon Sep 17 00:00:00 2001 From: Robert Gilman Date: Fri, 1 Feb 2019 19:09:36 -0800 Subject: [PATCH 1/2] Change filename home.php -> homepage.php home.php has a reserved status in the WordPress template hierarchy. --- home.php => homepage.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename home.php => homepage.php (100%) diff --git a/home.php b/homepage.php similarity index 100% rename from home.php rename to homepage.php From 7b6ede562ccd2b51de8d53ccf98807d3f8d0cc04 Mon Sep 17 00:00:00 2001 From: Robert Gilman Date: Fri, 1 Feb 2019 19:15:40 -0800 Subject: [PATCH 2/2] Convert from Blogs -> Blog Get set for a single blog on non-multisite install. --- functions/bfc-functions.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/functions/bfc-functions.php b/functions/bfc-functions.php index 423fa54..294ecae 100644 --- a/functions/bfc-functions.php +++ b/functions/bfc-functions.php @@ -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', @@ -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; @@ -317,7 +317,6 @@ function bfc_bottom_nav() { $bottomnav .= $thismenuitem; } $bottomnav .= ''; - $bottomnav .= '

'; echo $bottomnav; }