John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Mutiple Instances of bcn_display()So, for per instance/call to
bcn_breadcrumbthere are only a couple of unique settings available, see https://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/#Usingbcn_displayandbcn_display_listBeyond that, the settings in the settings page are going to apply to every call to
bcn_display().Forum: Plugins
In reply to: [Breadcrumb NavXT] Bug if you disable category for postAre you running into this behavior on other post types that category as a registered taxonomy? Also, how did you remove the Post post type from the category taxonomy? I have an idea as to how this is happening, but more information regarding the setup will inform what the proper fix is.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Either Name or item name should be specifiedFor some reason your product CPT root breadcrumb title is blank. That is why Google is complaining. If you don’t want that in your breadcrumb trail, you probably want to have the “Root Page” set to –Select– and have “Archive Display” set to unchecked.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Remove Current_PageThere are a couple of ways to remove the current item from the breadcrumb trial. The easiest way is going to use Breadcrumb NavXT Remove Current Item. The FAQ also covers two methods using plugins/PHP code to remove the current item, see: https://mtekk.us/code/breadcrumb-navxt/faq/#bcn_ci
Currently, your best bet is to modify the URL using the
bcn_breadcrumb_urlfilter.From the Breadcrumb NavXT side, I should probably revisit the code that is adding that query arg and make sure there isn’t a better way of doing it (which would tie into the rewrite system so it would just ‘know’ you have a post_type rewrite in your permalink structure).
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to remove “blog” on breadcrumbs URLUltimately, Breadcrumb NavXT uses
get_term_link()to get the links for categories, you need to target that function to remove the ‘/blog/’ from the URLs Breadcrumb NavXT generates for categories/terms.Forum: Plugins
In reply to: [Breadcrumb NavXT] PersonalisationFor the first thing you want to do, that’s known as “removing the current item”. There are several ways of doing this, see the Breadcrumb NavXT FAQ
For the second and third things you want to do, those are styling things, which will require you to add some CSS (for the time being, eventually the breadcrumb trail block will have some styling options available). Using
text-decoration: none;when targeting theaelement within the breadcrumb trail will remove the underlines. A grey shadow will require box shadow or drop shadow (see https://css-tricks.com/breaking-css-box-shadow-vs-drop-shadow/).Forum: Plugins
In reply to: [Breadcrumb NavXT] Internal Server Error when saving changesNormally, internal server errors or access denied errors are caused by ModSecurity, please double check that it wasn’t getting tripped up (likely didn’t like a value being saved in one of the breadcrumb templates). I’m not aware of any PHP8/8.1 issues in Breadcrumb NavXT (I’m running PHP8.1 on my testbed right now and I am not seeing this issue).
Forum: Plugins
In reply to: [Breadcrumb NavXT] displaying the object of the searchThis looks problematic:
unset( $wp->query_vars['s'] );as does this:
$query->set('s', '');Not sure why either are being done, but either could cause the issue you’re experiencing (integer/id searches don’t show up in the breadcrumb trail).
Forum: Plugins
In reply to: [Breadcrumb NavXT] displaying the object of the searchBreadcrumb NavXT will try to display what was searched for in the breadcrumb trail on search results. This is done using
get_search_query()it appears to not be working on the site you linked. Playing around with the search, it appears it does work with strings but not numbers on your site (it works with either on my testbed). As to why that is the case, unfortunately, I don’t know. My guess would be something on your site is filtering against numbers usingget_search_query.Forum: Plugins
In reply to: [Breadcrumb NavXT] Can Breadcrumb NavXT do The Following?Adding custom breadcrumbs to the breadcrumb trail can be achieved using the
bcn_after_fillaction. Or, using the Menu Magic extension plugin (premium).Changing the title that is used in the breadcrumb trail can be accomplished using the
bcn_breadcrumb_titlefilter, or Title Trixx (uses term/post meta boxes) or Menu Magic (uses menu entry titles) extension plugins.For the hidden category thing, if you want to always exclude category 1, you can either remove it using
bcn_after_fill, use a custom taxonomy instead for category 1 (hidden categories typically mean you want something extra to organize by but don’t want to show which usually is better suited for a custom taxonomy but not always), or if you leave it out of the hierarchy in menu for Menu Magic, it should be left out of the trail. That said, if you have many categories you wish to do this with, the menu you will have to setup may be a bit cumbersome.Lastly, normally, for pages, tag archives, 404 pages, etc where you don’t want the breadcrumb trail appear you’d use theme templates to control that (general philosophy is where and when the breadcrumb trail is displayed is the role of the theme, what the breadcrumb trail displays is the role of the plugin)
Forum: Plugins
In reply to: [Breadcrumb NavXT] Include attribute filter URLsSince the attribute filter isn’t part of WordPress core, Breadcrumb NavXT won’t be able to automatically pick up on it. You can add custom breadcrumbs to the trail using the
bcn_after_fillaction. This article provides an example on how to use the action for adding a custom breadcrumb to the trail, https://mtekk.us/archives/guides/add-a-static-breadcrumb-to-the-breadcrumb-trail/. Note that the example adds a static breadcrumb and doesn’t do anything particularly smart (within the function you should check for your attribute filter before adding the breadcrumb for it to the trail).Thanks for reporting this. Looking into this, it appears the problem is boolean settings are not handled properly when importing. Since the exporter only exports what is save in the database and as of 7.0, Breadcrumb NavXT has moved to only saving the non-default setting values, the export file does not contain boolean settings that have the default value of ‘true’. I’m tracking this with the following github issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/289
Forum: Plugins
In reply to: [Breadcrumb NavXT] BreadCrumb HTML Structure Issue on NU HTML Checker ToolThat’s interesting, the Breadcrumb NavXT Gutenberg block shouldn’t be adding the
<li>tags. Based on some testing on my local testbed, my guess is your breadcrumb templates (in the Breadcrumb NavXT settings) have these<li>tags (which is not the default value), or the plugin was modified to callbcn_display_list()instead ofbcn_display()within therender_block()function. The current Breadcrumb NavXT Gutenberg block does not support using<ol>or<ul>wrappers and<li>elements (the plan is to update the Gutenberg block to support more settings/features in the next release). So, at this time, I’d recommend sticking with just<span>wrappers and closer to the default breadcrumb templates.Forum: Plugins
In reply to: [Breadcrumb NavXT] BreadCrumb HTML Structure Issue on NU HTML Checker ToolHow are you calling the breadcrumb trail? The linked page has
<li>tags that probably shouldn’t be there. That said, I’m not sure how with Breadcrumb NavXT you would get<li>tags without extra stuff in them (usingbcn_display_list()is going to add other things within the<li>tags), unless prevented using thebcn_display_attributesfilter.