John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] HomeYes, your “Home Template” needs to have
%htitle%replace with Home.Forum: Plugins
In reply to: [Breadcrumb NavXT] HomeIf you have not done so yet, you want to change the normal “Home Template” as well (replacing %htitle% and %title% with Home).
Forum: Plugins
In reply to: [Breadcrumb NavXT] version 6.4Breadcrumb NavXT 6.4 itself isn’t going to fix the Google search console issues. It is going to introduce a new feature that allows you to add the link/url ID to unlinked breadcrumbs for those who want that. Fixing the search console issues is site dependent, what is known to work when the current item is not linked are the default breadcrumb templates that Breadcrumb NavXT 6.2 and newer ship with (in general, this means your unlinked templates need to be
<span>%htitlte</span>without any itemprop or associated attributes). The changes in 6.4 will make it possible to include the URL/ID so that the schema.org markup can be included in the unlinked templates.As for the release date, Breadcrumb NavXT 6.4 is slated for the end of October. I am most of the way through implementing the link/url change (still need to work through a couple of unit tests that fail).
Forum: Plugins
In reply to: [Breadcrumb NavXT] WP Version 5.2.3 CompatibilityThere are no known issues with the latest version of WordPress. I’ll update the readme shortly.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Structured Data Tool found Item missing in codeIn the linked page, your anchors are missing the
itemprop="item"attribute that is required when using the microdata formatted BreadcrumbList (see Microdata example on https://schema.org/BreadcrumbList).Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “id” in Breadcrumbs on Google Search Console@mrjkelly: This particular subforum and thread are for users of Breadcrumb NavXT. The discussion in this thread is unlikely to be helpful for you if you are not using Breadcrumb NavXT. Try the general WordPress.org forums for help with custom breadcrumb trail implementations.
Lastly, I find your assertion that just because Breadcrumb NavXT has not needed a release in 5 months that it is somehow insecure.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Structured Data Testing Tool ErrorFor the unlinked template, you don’t want to have the extra information, that is, instead of:
<span property="itemListElement" typeof="ListItem"><span property="name">%htitle%</span><meta property="position" content="%position%"></span>you want<span property="name">%htitle%</span>.As for the Google Search Console, be aware that fetching a URL vs pasting in HTML will result in different results (a bug it has had for quite a while). As for which one is correct, I don’t know for sure.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Solution to Missing field “item” for unlinked last itemI don’t think the %link% gets stripped, it just isn’t replaced by anything useful as currently due to how Breadcrumb NavXT treats unlinked breadcrumbs. This will change in 6.4 (see https://github.com/mtekk/Breadcrumb-NavXT/issues/226 )
Forum: Plugins
In reply to: [Breadcrumb NavXT] A value for the itemListElement field is required.For the home page, the best bet when using an unlinked current-item is to just not have a breadcrumb trail there (as it is a single breadcrumb, which apparently, Google doesn’t show anyways). Currently, my site has the same single error. For 6.4, there will be a way to add the id for the unlinked breadcrumbs and everyone can move to adding the schema.org syntax back to them (and this problem will then go away).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Structured Data Testing Tool ErrorI’m using the default from 6.2.0, which is:
%htitle%However, a span without extras should work:
<span>%htitle%</span>Apparently,
<span property="name">%htitle%</span>works as well in the structured data testing tool. If you run your page through that, what are you getting? Also, is the last breadcrumb using the expected template, or is there extra markup being included there?Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “id” in Breadcrumbs on Google Search Console@lewisray: Since everyone’s situation boils down to one or two things that they need to do, I am not feeling it necessary to reply to every single comment in this topic. The setting value that @rom174 is suggesting probably works the best for now, or if you have not ever set any of the Breadcrumb NavXT settings, you can do a reset (under the Help tab), which will load the default settings, which will not have this issue (as of 6.2.0 and later).
@kiam123: For what you’re showing, it looks like your template settings are a bit amiss/very old (assuming you are using Breadcrumb NavXT). Have you changed any of the settings? If not, I suggest doing a settings reset (as long as you are using Breadcrumb NavXT 6.2.0 or newer) by visiting the Breadcrumb NavXT settings page, clicking on the Help tab, and then navigating to the “Import/Export/Reset” form in the left side menu of the help drop down, finally press the “Reset” button.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Structured Data Testing Tool ErrorYou’re most likely getting the missing field “id” due to having
property="name"in your span. If you remove it, that error should go away. Currently, for unlinked breadcrumbs you should not have any schema.org markup for them. There are a few ways that others have found to inject an ‘id’ (the URL), but none of them are really standard, and until I change something in 6.4, unlinked breadcrumb templates do not have the %link% tag available.Forum: Plugins
In reply to: [Breadcrumb NavXT] Solution to Missing field “item” for unlinked last itemOddly enough, something similar, for a different reason came up recently. Essentially,
wp_ksesis stripping it out. See https://wordpress.org/support/topic/rdf-schema-markup-for-unlinked-template/#post-11953582 for an outline of how to handle/deal with this. Also see https://mtekk.us/archives/guides/how-to-add-li-and-other-tags-to-breadcrumb-templates/ for an example of using thebcn_allowed_htmlfilter.As for Google recognizing the last breadcrumb (the one for the current resource), I’m not sure that matters. The current item, as far as I’m aware, does not show up in the search results listings. Or, is there something I’m missing (very possible)?
- This reply was modified 6 years, 9 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “id” in Breadcrumbs on Google Search Console@bozulurmu: If you remove the schema.org markup for the unlinked breadcrumb templates, the error will go away. It doesn’t look like the site you linked to is not using the default breadcrumb templates, you’ll need to remove references to itemtype, itemscope, temprop, and the meta tag from your unlinked breadcrumb templates. Since you do not have the breadcrumb trail on your home page, this should resolve the issue for you.
@asc1212: From what you posted before, you need to update your unlinked breadcrumb templates so that they do not contain schema.org markup (e.g. use
<span class="%type%">%htitle%</span>), this has been the answer for quite a while, and is what the default settings are now (previously the schema.org markup was erroneously included in the unlinked breadcrumb templates).@rom174: I’ve seen a few ways that people have suggested handling adding the URL to unlinked breadcrumbs, I’m not sure any method is standard per say. However, I do know that currently, Breadcrumb NavXT usually will not have the URL available for unlinked breadcrumbs. This is likely to change in future versions to allow more flexibility (see https://github.com/mtekk/Breadcrumb-NavXT/issues/226).
Forum: Plugins
In reply to: [Breadcrumb NavXT] RDF schema markup for unlinked templateAs far as I can tell the ‘resource’ attribute is non-standard (if you have some documentation on it that you could point me to, I’d appreciate it). Since it is not in the allowed list of tag attributes, the
wp_kses()function called in thebcn_breadcrumbclass is removing it. If you want to add it as an acceptable attribute, hook into thebcn_allowed_htmlfilter and add it into the appropriate tags. Ssee https://developer.wordpress.org/reference/functions/wp_kses/ for information onwp_kses(), also see Breadcrumb NavXT’s breadcrumb-navxt.php file for an example of using thebcn_allowed_htmlfilter.