John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumbs disappearedGiven your calling code in your child theme’s header.php, do you see
<!-- NavXT Breadcrumbs plugin -->in the generated page’s source? Off hand, I can think of two reasons why a breadcrumb trail is not showing up in the page source. The first is for some reason the breadcrumb calling code isn’t executing (usually due to something in the theme not calling the file the call tobcn_display()is in). The second is that your updated breadcrumb templates don’t contain%htitle%or%title%.Forum: Plugins
In reply to: [Breadcrumb NavXT] WooCommerce breadcrumb name SHOP is PRODUCTSUsually, what is going on here is WooCommerce uses a page (instance of the page post type) to handle the products archive. By default, Breadcrumb NavXT links to the post type archive if the post type has an archive. However, there isn’t a way to automatically determine the “root” page e.g. what WooCommerce is using. So, you will need to set the root page yourself in the Breadcrumb NavXT settings. Rather than paraphrase and make an error, I’m going to point you to the following article, specifically the “What Works” section, Breadcrumb NavXT and WooCommerce Compatibility Tips.
Forum: Plugins
In reply to: [Breadcrumb NavXT] how to force post title RTL in NavXT?If you are using the default breadcrumb templates, you should be able to target the breadcrumb representing the current item using the
current-itemCSS class. Otherwise, I suggest using your web browser’s built-in inspector tool to see if there is an applicable class or id for the current item that you can target with CSS (potentially something like.breadcrumbs span:last-childmay work).Forum: Plugins
In reply to: [Breadcrumb NavXT] Custom Breadcrumb for Archive PageIf you are using Breadcrumb NavXT 6.4, the best way to do this is to write an action for the
bcn_after_fillhook (same API asbcn_before_fill, it just runs after the breadcrumbs array has been populated). You will want to traverse the breadcrumbs array looking for the one representing “Archive” (can check the title by callingget_title()on thebcn_breadcrumbobject), and then use theset_linked(true)method (a member function of thebcn_breadcrumbobject) on thebcn_breadcrumbobject.Forum: Plugins
In reply to: [Breadcrumb NavXT] ‘home’ breadcrumb not shownCheck your Home Breadcrumb templates in the Breadcrumb NavXT settings, replace instances of
%htitle%and%title%with Home. It appears something is causingget_option('blogname')to return an empty string.Forum: Plugins
In reply to: [Breadcrumb NavXT] search console error “itemListElement” for frontpageWhat mjsaei suggested doesn’t actually make sense as that is not the correct per Schema.org’s documentation for BreadcrumbList. Yoast moved to using just JSON-LD since Google couldn’t seem to figure out how to parse things correctly using the microdata and RDFa formats. If you’re using Yoast SEO already, you could use https://github.com/mtekk/Breadcrumb-NavXT-Schema to have the Breadcrumb NavXT generated breadcrumb trail show up in the JSON-LD listing that Yoast SEO generates. If you do that, I highly recommend removing the BreadcrumbList markup from the settings and call to the breadcrumb trail (do not want Google to see two instances).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Unable to save changes to plug in settings404 errors sound like an issue with caching/rewrite rule conflicts. In general, the WordPress admin area shouldn’t get cached (so this could be some sort of caching misconfiguration. Another source of issues like this is ModSecurity, you’ll need to look at your server logs to see if that is the case (ModSecurity should have it’s own access and error logs).
- This reply was modified 6 years, 2 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Error on my site related to Breadcrumb NavXTThat sounds like an issue with the server not being able to open the full PHP source file. It could be a momentary glitch on your server, or may be indicative of other issues with the server. If you have access to the server logs, they may be worth looking into.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Having Missing field “itemListElement” Error at Home Page@mjsaei: It’s interesting that Google seems to like that change. Especially since the suggested change does not follow Schema.org’s example for BreadcrumbList using the microdata markup “language”.
- This reply was modified 6 years, 2 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Updated PHP To V7 – Plugin BrokedHi Kevin,
Thanks for providing more detail, I think I know what is going on. While there is an error that gets thrown by part of Breadcrumb NavXT, the cause of the error most likely is not Breadcrumb NavXT. The filter (
plugin_action_links) being handled by the function in questions is supposed to pass in an array for the first parameter. However, some other code (likely another plugin) is messing up this first parameter so a string is passed in instead of an array. In the past, this didn’t trigger a PHP error, now it does. I recommend disabling all of the plugins other than Breadcrumb NavXT, then activate them, one-by-one until the error re-appears. Once it re-appears, you’ll know what plugin is causing the issue (and can let that plugin author know they have a bug that needs to be fixed).Forum: Plugins
In reply to: [Breadcrumb NavXT] Polylang support for titles and permalinksCurrently, I have a policy of not adding 3rd party code into Breadcrumb NavXT’s core. As a result, support for Polylang is provided by an add on plugin to Breadcrumb NavXT (which handles root page translation). For the foreseeable future, adding this to the core Breadcrumb NavXT plugin probably will not happen.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Updated PHP To V7 – Plugin BrokedWhat version of PHP7 are you running? Also, can you elaborate as to how is the plugin broken (e.g. what error messages are you seeing, or what isn’t working)? I develop against PHP 7.3, as far as I know, it should not have issue with PHP7.
Forum: Plugins
In reply to: [Breadcrumb NavXT] PLEASE add information on setup tabI assume you are talking about the installation section on the .org repo. That was there in the past. However, at one point code blocks were no longer handled properly and so it was removed in favor of a link to a article that goes into depth on how to call the breadcrumb trail.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Error “Not all markup is eligible for rich results”The markup generated by Breadcrumb NavXT complies with Schema.org BreadcrumbList and the examples produced by Schema.org. Google has issues with the current item having Schema.org markup. This is a long standing issue that they don’t seem to care to fix (the tool to provide more data on what triggered the issue). Worse yet, sometimes it does not have an issue with it.
From what I’ve seen, there seem to be two things that can trigger it. The first is other schema.org markup that is in a different format (e.g. microdata vs RDFa). The other, is some other markup (open graph seems to trigger it) or other things done in your page that are annoying Google but doesn’t trigger until hitting the breadcrumb. Beyond this, I can’t really help as Breadcrumb NavXT is, to my knowledge, doing what it is supposed to do.
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to add root page to URL slug?I believe this has been done before, however, I can’t seem to find the topic/email that covered this. In the end, you’ll need some custom code to create a new rewrite rule adding the /career/ into the URL. Some care will need to be taken as /careers/ is a page and the normal rewrite rule parser may have problems with what you’re trying to do.