- This topic has 5 replies, 3 voices, and was last updated 1 year, 11 months ago by David.
July 9, 2019 at 11:05 pm #953578Fernando
As I read, I insert yoast_breadcrumb() in the generate_after_header hook, and works well, but when using GP custom header elements the breadcrumb appears after them.
The question is: How do we to place the breadcrumb after the primary navigation and before the header element?
As I dont find the right hook… This theme needs one or two more hooks in that area, and built-in breadcrumbs!
Thank you.July 10, 2019 at 6:27 am #953881DavidStaffCustomer SupportJuly 10, 2019 at 12:13 pm #954268Fernando
Yes I tried it. with priority=1 it appears before the primary navigation bar and with 6 it appears between the navigation and the header element.
But… I think this method is not secure, as other actions can modify the order, isn’t it?July 10, 2019 at 12:18 pm #954271LeoStaffCustomer SupportJuly 11, 2019 at 1:42 pm #955354Fernando
I want to say, for example: if GP or GP Premium developers (you), change the priority of the actions (or the order in code), or add new actions, my priority (or execution order) could change, so the position changes.
That’s why I say it doesn’t look a secure method.
I think the theme needs more hooks in that area, and breadcrumbs!
Pd: I am testing Hook Elements and it looks a great way to implement all this things.July 11, 2019 at 1:59 pm #955374DavidStaffCustomer Support
We won’t ever change the priority of elements being hooked in by the theme. This is to preserve backward compatibility. So it’s not something to be concerned about.
We are not 100% sure about adding breadcrumbs to theme at this time. If we were it would only be a basic trail. The difficulty here is that most sites will use an SEO plugin that provides them or a plugin like Breadcrumbs NavXT for more advanced options – making our code redundant. But it is something we’re considering.
- You must be logged in to reply to this topic.