John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] 406 Error with Setting ChangesMy guess is that you have some sort of WAF (Web Application Firewall) such as ModSecurity or WordFence that have rules that are being a little too sensitive. I assume it doesn’t like the HTML in the Breadcrumb template settings. Try checking your logs to see what rule is getting triggered
You can control the display of the post type parameter (for post types that are not the primary for a taxonomy) using the
bcn_add_post_type_argfilter. How to do this is covered in this article: https://mtekk.us/archives/guides/how-to-remove-post_type-from-breadcrumb-navxt-urls/Forum: Reviews
In reply to: [Breadcrumb NavXT] Powerful PluginI guess I wouldn’t really call a shortcode user friendly, it would require you to add a shortcode to every post that you wanted a breadcrumb trail on. It’s much easier to either use the included widget (add once to theme sidebars), modify your theme to call
bcn_display(), or to use the various block templating/patterning methods and the included Gutenberg Block. Yes, it’s not an ‘activate and breadcrumbs magically appear’ kind of plugin (unless your theme explicitly supports it out-of-the-box).How are you trying to add a container? It should be as easy as wrapping the call to
bcn_display()(e.g. `<div class=”breadcrumbs” typeof=”BreadcrumbList” vocab=”https://schema.org/”>
<?php
if(function_exists(‘bcn_display’))
{
bcn_display();
}?>
</div>`. See https://mtekk.us/archives/guides/calling-the-breadcrumb-trail/ for some examples.I think I figured out what was happening (and it only affected checkboxes). I have pushed a fix to the development branch for Breadcrumb NavXT 7.0. Since the rest of 7.0 isn’t really ready, the quick solution to a working widget is to grab the class.bcn_widget.php from the 7.0 development branch (will work with Breadcrumb NavXT 6.x), see https://github.com/mtekk/Breadcrumb-NavXT/blob/runner/class.bcn_widget.php
So, just a quick followup. It appears that the settings do actually save, but there is some bug with the display of the checkbox settings (so they are automatically checked on page reload).
Is there a reason that you are not using the ‘static front page’ option within WordPress (under Settings > Reading)? Using WordPress’ feature for static front pages would prevent the need for the bulk of your custom code there, including the rewrite rules (Breadcrumb NavXT would no longer throw the error as well).
Forum: Plugins
In reply to: [Breadcrumb NavXT] PHP 8 – Deprecated outputThanks for bringing this up, it should be fixed on the development branch for the next release of Breadcrumb NavXT (it’s just taking longer than expected for that release to be ready).
Thanks for reporting this. It appears the new Widget block system broke widget setting saving. This will be fixed in the next release of Breadcrumb NavXT. I’m tracking this in the following github issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/253
In the meantime, for a no-thrills (e.g. getting just a call to
bcn_display()with no options) call to Breadcrumb NavXT, you can use the Breadcrumb NavXT block (I’ve been meaning to add settings to it, but haven’t gotten to that yet. Also, note that the preview of the block output requires enabling the Breadcrumb NavXT REST API endpoint for posts).- This reply was modified 4 years, 10 months ago by John Havlik.
It is not recommended to edit the plugin files, any changes will be lost when you update the plugin.
What page, on your site, are you visiting when you get this error? This occasionally comes up, but I have never been able to recreate it on my test site.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumb does not appear on all pagesMy guess is the template file that has the call to
bcn_display()for the working pages is not used on the pages that does not have a breadcrumb trail showing up. So, you probably have to add the call tobcn_display()to the template file used by http://portalpaula.org/ca/pandemia/ and http://portalpaula.org/ca/pandemia/taller-recerca/.Forum: Plugins
In reply to: [Breadcrumb NavXT] Not showing breadcrumb trail, but shows prefix textI’m not sure what to say. Breadcrumb NavXT doesn’t have a “prefex text” unless you set something in the Breadcrumb NavXT widget. Were you trying to use the Breadcrumb NavXT widget? Or did you try calling the breadcrumb trail using
bcn_display()or some other method?Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumb giving HTTP linksAll of the URLs that Breadcrumb NavXT uses are straight from WordPress API calls (HTTPS works out-of-the-box provided your site is setup correctly). Make sure under Settings > General that both the Site and WordPress Addresses have “https” in them instead of “http”. I believe that is all that is required to make https show up in all of the URLs WordPress generates for your site.
Forum: Plugins
In reply to: [Breadcrumb NavXT] polylang | translation of home breadcrumb urlYeah, for some reason, Polylang does something odd with the
get_home_url()function (i.e. it doesn’t translate it). As for the solution, the extension plugin you mentioned lists handling this translation as a feature.Forum: Plugins
In reply to: [Breadcrumb NavXT] Set custom Breadcrumbs paths. Manually / rule based?So, Breadcrumb NavXT doesn’t exactly care about the URL, it picks up on how the content is actually organized within WordPress. However, if you’re doing things that don’t really follow the traditional structures withing WordPress, then things will get tricky. Not knowing more on how this is being implemented makes it difficult to recommend a particular solution, however, I will say you can use the
bcn_after_fillaction to traverse the trail and add/modify breadcrumbs as needed. Otherwise, as breadcrumbs are added, you could use one or more of the filters to adjust what ends up in the trail (e.g.bcn_pick_post_term).Forum: Plugins
In reply to: [Breadcrumb NavXT] Problem on multilingual siteIf I remember correctly, Polylang for some reason doesn’t translate the results for
get_home_url(). As for the root pages, since that’s not fully a native WordPress thing so you need some exta code to help support translating that. There is an extension (premium) for Breadcrumb NavXT which adds support for translating both of these in Polylang.