-
Hello Rank Math Team,
I hope you’re doing well.
I’m using Rank Math SEO plugin on my website (https://aidalil.com) with the Jannah WordPress theme. I’ve enabled Breadcrumbs in Rank Math and I’m trying to integrate them globally across my website for SEO purposes and to fix a breadcrumb schema error reported by Google Search Console.
The issue I’m facing:
I enabled Breadcrumbs in Rank Math settings.
I tried adding this code into my theme’s header.php file after the header section:
When saving the file, I’m getting a PHP syntax error like:
lua
Copy
Edit
syntax error, unexpected ‘<‘, expecting end of file
Because of this, the breadcrumbs don’t appear on my pages.Additionally, Google Search Console shows this error:
Missing field “itemListElement” in BreadcrumbList schema.
I tried different placements and variations of the code (using echo, PHP closing/opening tags, etc.), but it either causes syntax errors or breaks the layout.
My goal:
Integrate Rank Math breadcrumbs across all pages and posts in Jannah theme.
Generate the proper JSON-LD schema including the itemListElement to fix the Search Console error.
My questions:
Is there a recommended or safer way to integrate Rank Math breadcrumbs into the Jannah theme?
Should I use a specific hook or function rather than placing the code directly in header.php?
Is there an alternative way to make sure the breadcrumbs schema is output properly on every page?
Thanks a lot for your help!
Best regards,
The ticket ‘Integration Issue: Rank Math Breadcrumbs in Jannah Theme Causing Syntax’ is closed to new replies.