Archived topic
Hook not aligned after update
11 replies · Started by Gianluca on August 15, 2018
After the update and migration from Hooks to the new Elements, I noticed an issue with one of my hooks, added to display Yoast breadcrumbs.
If you check breadcrumbs on categories page, you'll see that is not aligned with the other content of the page, while in blog posts, the breadcrumb is aligned.
How to fix the problem in categories pages and have the same alignment as in blog posts like before the migration?
Thank you in advance!
Hi there,
Which hook are you using?
Can you disable the caching plugin so I can see the source of the code?
Thanks!
Sure, caching plugin disabled!
I'm using the hook called "Yoast Breadcrumb".
Please let me know if you need anything else.
Sorry you selected Yoast Breadcrumb under the hook dropdown list?
https://docs.generatepress.com/article/hooks-element-overview/#settings
Can you disable autopimize as well?
I selected the hook before_main_content.
Try giving it a priority like 1.
OK that makes more sense.
Can you disable autopimize as well?
Just want to make sure something.
Thanks!
Thanks Tom, with priority 1 the issue has been fixed! What is exactly the function of the priority option?
Leo, I disabled Autoptimize if you need to check something.
The columns container was throwing it off. That container is added to the same hook, so by giving your breadcrumbs a lower priority, it outputs the HTML before the columns container (which has a higher priority).
Thanks Gian I'm all good now :)
Ok thanks for your help!
Glad we could help :)