Archived topic
Breadcrumbs don't work
26 replies · Started by Mihail on July 15, 2021
You can use GP Premium without adding the license key :)
Sorry, but I didn't understand what you mean 😅🙃
But, i created test site for you, and:
1.created the site
2.installed GP
3.installed Yoast seo
I am attaching login details. Do whatever it takes.
I meant if you can start a staging site that duplicates your current site so we can go through some proper debugging steps like disabling all plugins etc.
Or can you try if the issue can be reproduced in the fresh install you've just created?
Unfortunately I am unable to create a similar site (with content and plugins). I do not know how to do it.
Since if I add a license on the test site, I will have minus one license. Therefore, no :(
I repeat. Only before_entry_title does not work.
If I specify before_main_content, then breadcrumbs work on the all pages and posts.
Rules and parameters
https://prnt.sc/1bhbmpw
Example page:
https://prnt.sc/1bhc5uz
Example post:
https://prnt.sc/1bhcay1
Unfortunately I am unable to create a similar site (with content and plugins). I do not know how to do it.
Many hosting offers this service for free, or you can use a plugin like this:
https://en-ca.wordpress.org/plugins/duplicator/
Since if I add a license on the test site, I will have minus one license. Therefore, no 🙁
Once we are done with the testing and the test site is removed, you will get that one license count back - your license is valid for 500 sites and so far you've only used one.
Or can you try if the issue can be reproduced in the fresh install you’ve just created?
Were you able to try my suggestion above?
It's too late today.
Tomorrow when I transfer the site or plugins to the test site, I will write to you in this thread.
Once again, I draw your attention to this:
I repeat. Only before_entry_title does not work.
If I specify before_main_content, then breadcrumbs work on the all pages and posts.
Rules and parameters
https://prnt.sc/1bhbmpwExample page:
https://prnt.sc/1bhc5uzExample post:
https://prnt.sc/1bhcay1
Ahh I see where the confusion is.
The generate_before_entry_title hook only exists in single posts as seen here:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
You would need the generate_before_content hook for static pages:
https://docs.generatepress.com/article/hooks-visual-guide/#static-page
So just create the same elements twice - one for posts and one for pages.
Hope this helps :)
This is what I was talking about initially :)
I just wanted to clarify, perhaps some other way has already been invented, where you do not need to create 2 blocks.
UPDATE:
Last question.

I created breadcrumbs not through the HOOK, but through the BLOCK. It is right?
You would require 2 hooks or block elements if you need them in different places.
For sure you can use a Block > Hook to display them. It does the same thing as if you just used the Hook element.
Thank you all, I close the topic ;)
Glad we could be of help