Using Yoast Breadcrumbs

Posted in: Newsmag
Post count: 9544

Hi, folks
with Newsmag, we were looking to try using Yoast breadcrumbs on couple of sites for edge updates to stupid Google schema nonsense and some pages/posts not being fully indexed due to ‘schema errors’ seemingly at random. One site, no issues, another, MANY posts not indexed with most recent updates. So, looking to test this (sigh).

What is best way to insert Yoast breadcrumb code in current version of Newsmag?

Thanks! 🙂

  • This topic was modified 1 year by simchris.
Post count: 20685

Hi,

That is possible. You could test it on posts first. The Yoast breadcrumbs can be added in the post template file.

The post template files are in the composer here https://prnt.sc/RMECazpUiK1I Each of them corresponds to a post template, loop/single template 1 means post template 1 for example.

In the post template the theme breadcrumbs are displayed via this line of code https://prnt.sc/N65vACkzn0Bx which can be removed or commented.

Then the Yoast breadcrumbs can be displayed via the code they provide here https://yoast.com/help/how-to-implement-yoast-seo-breadcrumbs/
Like this https://prnt.sc/ZQ-uTUitRlJD

The Yoast breadcrumbs are then displayed https://prnt.sc/qb7ZfX6zQyjq and they can be customized in the Yoast plugin https://prnt.sc/vUk7Ph5Qp5ix Visually they may need some CSS to fit with the rest of the website, they look kind of rough by default.

Please try and let me know if I can help more.

Thank you!

Post count: 9544

Perfect thanks.
I think I can do that in template 2 where I’m moving tags and categories to bottom below share buttons. Testing on the one pesky website where stupid Google says it’s a problem. Sigh.

Post count: 20685

No problem, for post template 2 its the single_template_2.php here https://prnt.sc/AbQsjK0a7rBv And the theme breadcrumbs code is inside it https://prnt.sc/TcOOMpXVXbme Same there, just remove or comment that code, and add the Yoast breadcrumbs code.

If I may ask (I wanted to ask before and I forgot) what kind of issues does Google find with the breadcrumbs? Do the issues appear when testing with these tools? https://developers.google.com/search/docs/appearance/structured-data

Thank you!

Post count: 9544

Hi
we’re still evaulating false positives; as we ended up in horrible timing thing where we got DDOS on our news sites right as Google was starting their reindex thing. Knocked couple sites out of Google News for first time in decade, couple were fine, couple not so much. One site not even getting notes or monthly impressions. The other finally getting oddball errors. Once the dust settles will let you know if non issue or real issue. Ugh. They have way too much power over the interweb.

Post count: 9544

OKAY … you may laugh, but it turns out the site in queation was still running my hacked up version of Newsmag 3x (!).
Migrating to latest 5x trunk will probably fix the shenanigans with Google.

#DOH

Post count: 20685

I actually tested the theme with those Google tests, to see if they report any issues with the theme breadcrumbs. There were no errors or warnings https://prnt.sc/gm93s8GVm2Vq Sometimes there can be, especially if they perhaps make a change on their side.

Sorry to hear about the attack. I’ve seen such cases before and they can last quite some time. Having cloudflare helps, or at least wordfence which has rate limiting to block repeated requests. Older websites with old theme, plugins, wordpress, are more vulnerable.

If there’s something else that I can help with, please let me know at any time.

Thank you!

Post count: 9544

Hi, all good. Resubmitted sitemap to see if they still flag anything.
Luckily with dedicated server we have good DDOS tools in place, but all our sites are on the same server now vs old days where we had two. Luckily the big hack attempts seem to be relegated to major US POTUS elections.

Feeling the pain over here today for our new U.S. overlord babyman.

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.