Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get single-site blog working #111

Merged
merged 3 commits into from
Feb 4, 2019
Merged

Get single-site blog working #111

merged 3 commits into from
Feb 4, 2019

Conversation

rgilman
Copy link
Member

@rgilman rgilman commented Feb 2, 2019

Our local instances are single-site and I expect our initial production instance to be single-site. However, bfn.context.org is multisite and we've been carrying the multisite / multiblog setup along from that.

This PR addresses that through changes in bfc_top_nav_menu_builder() and bfc_top_nav_is_active()

I also needed to rename home.php to homepage.php. home.php turns out to be a reversed name in the WordPress template hierarchy and was forcing dev.bfcom.local/blog/ to use home.php which is meant for the non-blog home page. I got clues to this from Blog Page Redirects To Homepage and from Query Monitor's template listing.

You will need to make some Admin changes to mesh with the coding changes.

  1. Go to Admin Dashboard > Pages and find the page called "BFNet Blog". It should be marked as the "Posts Page"
  2. Hover over it and choose Quick Edit. You will then see something like this:
    screen shot 2019-02-01 at 7 45 37 pm
  3. Change the slug from bfnet-blog to just blog.

This change can be made before merging the new version.

home.php has a reserved status in the WordPress template hierarchy.
Get set for a single blog on non-multisite install.
@rgilman rgilman self-assigned this Feb 2, 2019
@rgilman rgilman requested a review from iangilman February 2, 2019 04:10
@iangilman
Copy link
Member

Looks like some good clean up!

@iangilman
Copy link
Member

(I've made the change locally and filed #112 for the others to do so)

@iangilman iangilman merged commit f74c36f into master Feb 4, 2019
@iangilman iangilman deleted the Robert branch February 4, 2019 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants