-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add breadcrumbs to templates #2491
Conversation
Looks like this is actually the section title. $content should be coming from this function, seems like the reference is not working for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right @renintw. The "Learn WordPress" link should not be there, sorry for the confusion. The mockups were updated. |
Since I got all these error messages, those lines are currently commented out.
|
Missed that page, there are currently no CTAs that can link to this page right? |
cffce39
to
9faa8eb
Compare
I think it would be quite unusual for a Lesson to not be part of a Course, so I think prioritising that structure makes sense. In the rare case when it is free standing, having the lesson archive as the parent makes sense to me. |
This isn't using any sensei pro features, just a custom taxonomy. Maybe you don't have the taxonomy set up with the expected slugs; there should be I've added a taxonomy guard in this PR but obviously needs more to check the term exists. |
ah. I mean for lessons that are part of a Course, users can typically get into those lessons in two ways:
The current breadcrumbs implementation makes the flow consistent for users entering a lesson through a course page. (they can see the previous paths, which include the course title and the course archive) |
I had set these values from the beginning. I just added the missing contributor, but it's still the same. Update Fixed. |
Exactly. No breadcrumb on pages that are visible in the local nav. That includes Courses and Pages, and from these screenshots I see it's also on My courses. It should be hidden on this page as well. Regarding landing on the "Learning Pathway" page (as per this comment), it was intentionally not linked from the homepage and local nav. Adding an index page that does not provide more info for browsing content felt unnecessary. |
The breadcrumbs aren't supposed to reflect the browsing history though, rather the information hierarchy. That's what I expect, if I want to go back I can use browser history. |
Hmm I'm not sure what's going on then. It isn't an issue on staging or prod, so it seems likely it's local config. Happy to help debug if you like. |
3a800aa
to
bee4529
Compare
The feedback mentioned above has already been addressed. @fcoveram There are still some inconsistencies though. I'd like to confirm a few things:
Does it make sense to summarize that the local navigation will display up to the second level, and breadcrumbs start to display from when it's the third level? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM. You could ship this then iterate on the page things in a separate PR maybe.
I think we're missing the part of how local nav and breadcrumb behave. IIRC, all discussion and decision happened in wporg-mu-plugins#535. Here are the designs that show different uses cases across the site, and the diagram below summarizes what's in the design file. In this screenshot, |
Add breadcrumbs to the sites, except for Home and the Learning Pathway taxonomy. See design.
Closes #2442
I noticed in the design there's a
Learn WordPress
breadcrumb, which link does it link to? It appears to be redundant with 'Home'. @WordPress/meta-designScreenshots