John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Schema.org breadcrumbs errorYou need to find where
bcn_display()is called in your theme, then, you will need to replace<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">with<div class="breadcrumbs">(and save your changes). After doing that, in the Breadcrumb NavXT settings page, you will want to replace all of the breadcrumb templates with something like<a title="%title%" href="%link%">%htitle%</a>.Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “item” ErrorThat is caused by having the breadcrumb trail on your home page but not having any linked breadcrumbs (so that there are no itemListElements). The most proper thing to do is not display the breadcrumb trail on your home page (wrap calling code, including the HTML tag referencing schema.org BreadcrumbList). Otherwise, you can try a couple of methods discussed in a previous thread (from the summer of 2019) for adding the link to unlinked breadcrumbs and including the Schema.org markup in them.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “item” ErrorYou’re going to have to provide URLs to the pages with issues—the ones you’ve linked to already are not exhibiting any issues.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Schema.org breadcrumbs errorYou will need to do the following:
Remove any references to
itemscope,itemtype,vocab, andtypeoffrom the HTML elements wrapping the call tobcn_display().Remove all references to
itemprop,itemscope,property, andtypeofin the breadcrumb template settings.- This reply was modified 6 years, 4 months ago by John Havlik.
- This reply was modified 6 years, 4 months ago by John Havlik. Reason: removed formatting as it's broken
Forum: Plugins
In reply to: [Breadcrumb NavXT] Add Post type or Parent menu linkWhat do you mean by “post type page”, are you talking about a post that is of your custom post type (e.g. an instance of your CPT)? Or are you talking about something different? Displaying the “post type” in the breadcrumb trail can be accomplished two different ways. You can enable archives for that post type and change the setting in Breadcrumb NavXT to include the post type archive. Otherwise, you can set a root page for the post type, where you use a page (an instance of the page post type) akin to the “page for posts”.
For the taxonomy you created, where are you expecting to see it?
Custom post types and the ‘post’ post type can select the “hierarchy” in the post type settings under the “Post Types” tab in the Breadcrumb NavXT settings page. You should see the available taxonomies for each post type. Set to the taxonomy you want to use and make sure to press the “Save Changes” button.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “item” ErrorWhen I checked this tonight, it appears Breadcrumb NavXT is now generating your breadcrumb trail. And, Google’s Structured Data Testing Tool is not finding any errors. Are you still experiencing issues here?
Forum: Plugins
In reply to: [Breadcrumb NavXT] Add Post type or Parent menu linkOut-of-the-box Breadcrumb NavXT does not use the WordPress menu system for titles or content structure represented in the breadcrumb trail. If you want to add this feature, you will need to write code extending Breadcrumb NavXT to use your menu structure (will likely need to extend the
bcn_breadcrumb_trailclass). If you don’t want to write your own code, the Menu Magic premium extension allows Breadcrumb NavXT to use a specified menu for breadcrumb trail structure and breadcrumb titles.Forum: Plugins
In reply to: [Breadcrumb NavXT] Remove Title from Shop and product pagesIf you want to remove the current item from all breadcrumb trails on your site that are generated by Breadcrumb NavXT, you can use this micro plugin: https://github.com/mtekk/Breadcrumb-NavXT-Extensions/blob/master/breadcrumb_navxt_remove_curitm.php
If you want to only selectively remove the current item, you can start with the micro plugin that was linked above and add additional conditions on line 40 to check for the shop page’s ID and product pages’ IDs. If you don’t want to modify any code, the uManager premium extension provides an interface to selectively exclude individual pages (posts and term archives) from the breadcrumb trail.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “item” ErrorLooking at the linked site, and the breadcrumb markup on the offending breadcrumb trail. I’m not sure you’re actually using Breadcrumb NavXT for that breadcrumb trail. The markup generated isn’t something that Breadcrumb NavXT will do out of the box (so either there’s extra code extending Breadcrumb NavXT, or it’s not Breadcrumb NavXT). That said, since it appears you’re embedding the JSON-LD version of BreadcrumbList in your site’s header, you may be better off just removing the Schema.org markup for the non-JSON-LD breadcrumb trail.
Forum: Plugins
In reply to: [Breadcrumb NavXT] PermissionsAfter surveying a couple of plugins by authors I respect, it looks like the popular thing to do now is to create a new capability specific for a plugin’s options pages. I’ll look into doing that for the next release and I am tracking this in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/234
If your current item is not linked, it will not show up in the BreadcrumbList. Schema.org BreadcrumbList is only applicable if there is link. If you try to add the Schema.org markup without the link, Google’s tool will complain. Hence, in the default settings, Breadcrumb NavXT does not include Schema.org markup for unlinked breadcrumbs.
- This reply was modified 6 years, 4 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Schema.org breadcrumbs errorI’d have to see the actual page’s HTML markup to diagnose this. Off the top of my head I can think of a couple of reasons this is occurring. The first is if you have other Schema.org markup that is invalid for some reason and is confusing the Google parser. Another is if you are mixing RDFa and microdata formatted Schema.org data, apparently Google’s parser doesn’t like that either (which is one of the reasons why Yoast moved to using JSON-LD).
Forum: Plugins
In reply to: [Breadcrumb NavXT] PermissionsWhat capability are you thinking of using instead of
manage_options? As far as I am aware, themanage_optionscapability is the most appropriate one for dealing with options/settings pages. The plugin is not designed to allow 2nd or 3rd party code to change the capability required to manage the options/settings. So, unfortunately, there really is not a way to change the capability frommanage_optionsunless you modify Breadcrumb NavXT’s files (which I strongly advise against).Forum: Plugins
In reply to: [Breadcrumb NavXT] Move Breadcrumb PositionSince modern site designs typically use media-queries to provide a “responsive” design for various screen sizes, you are going to have to do a similar thing with your CSS that targets your breadcrumb trail. You should be able to use your web browser’s inspector tool to find what is being used by the other elements on the page and test applying those on the breadcrumb trail until you find a combination you like.
Forum: Plugins
In reply to: [Breadcrumb NavXT] data-vocabulary.org schema deprecated@turkeysforlife the code @genweb can’t be added to your theme’s functions.php, it needs to go into your main theme files where
bcn_display()was called before. The HTML element that wraps the call to Breadcrumb NavXT needs to have the Schema.org BreadcrumbList format identifiers and not the old data-vocabulary.org identifiers as you had before. This will likely require modifying one or more of your theme’s files.