John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Pre-Sale Q: Breadcrumb NavXT Title TrixxThe most appropriate area for questions regarding the premium plugins is in the comments section of the release announcement posts. Title Trixx allows you to give the breadcrumb for a resource (post or term) a title that is different than the actual resource title (this applies to all instances where the breadcrumb shows up in the trail, whether it is the current item or a parent).
Forum: Plugins
In reply to: [Breadcrumb NavXT] version 6.4How many of the Breadcrumb NavXT settings have you changed? I ask as it may be easier to just reset the settings to the “factory defaults” and then reapply your changes. To reset the settings, go to the Breadcrumb NavXT settings page, click on the “Help” tab in the upper right hand side of the screen. In the Help drop down, click on “Import/Export/Reset”. Lastly, click the “Reset” button.
The Home Template should be something like:
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to %title%." href="%link%" class="%type%"><span property="name">Home</span></a><meta property="position" content="%position%"></span>
The Home Template unliked should be something like:
<span>Home</span>Forum: Plugins
In reply to: [Breadcrumb NavXT] Either “name” or “item.name” should be specifiedIt looks like you have this issue on every page with a breadcrumb trail. The issue is due to there not being any text for the home breadcrumb. You are using a CSS injected icon, but you should still have the ‘Home’ text (or whatever you want as the home text) within the
<span property="name"></span>tag, even if the text itself is hidden using CSS rules.- This reply was modified 6 years, 6 months ago by John Havlik.
By chance is product_cat a non-hierarchical taxonomy? That’s the only way I can think of that could result in the breadcrumb template ending up in a name. Unfortunately, the the way non-hierarchical taxonomies are handled is hacky (and not compatible with the
display_json_ldfunction). Also, it doesn’t appear breadcrumbList supports multi-dimensional breadcrumb trails (which are to an extent are required for listing more than one non-hierarchical term in a breadcrumb trail). For the next release of Breadcrumb NavXT, I think I’m going to have that codepath check if there is only one term and, if so, do the same thing it does for hierarchical terms, which will not have this issue. In the meantime, if you have control over whether or not the product category is a hierarchical taxonomy, I suggest converting it to being a hierarchical taxonomy.Forum: Plugins
In reply to: [Breadcrumb NavXT] Urgent : User visited category not shown in breadcrumbSince Breadcrumb NavXT natively only supports location based breadcrumb trails, it is going to always pick the same term leading to a post (of any post type), if said post is a member of multiple term hierarchies. However, this behavior can be overridden using the
bcn_pick_post_termfilter. To do what you want to do, you are going to have to write code that hooks into thebcn_pick_post_termfilter and sets the term to the proper one based on how the user got to the post in question (e.g. checking the HTTP referrer, or using some other tracking method).If writing code to achieve this is beyond what you want to take on yourself, there is a premium add-on to Breadcrumb NavXT (Breadcrumb NavXT Paths) that will do this for you. However, since it uses the HTTP referrer to set the desired term, it is not compatible with many caching schemes.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Urgent : User visited category not shown in breadcrumbFor handling the term selection based on the visitor’s path, you can either write a hook into the
bcn_pick_post_termthat tracks the user’s path and selects the appropriate term, or use a plugin, such as Paths that does this for you. Note that this tracking will not work with many caching schemes as it depends on HTTP referer field, which doesn’t exist if the PHP processing/response has been cached.Forum: Plugins
In reply to: [Breadcrumb NavXT] Urgent : User visited category not shown in breadcrumb“Product Hierarchy Referer Influence” is only for selecting from multiple taxonomies (e.g. categories vs tags), not multiple terms within a taxonomy (different categories).
From the linked page, I see the breadcrumb trail: Products / Men / Clothing / Essentials / Furtos – Grey, which appears to be correct based on the categories it appears the product is a member of. Am I missing something/can you provide additional detail regarding what you are expecting to see?
When a post (of any post type) is a member of multiple terms/term hierarchies within the same hierarchical taxonomy, Breadcrumb NavXT will use the first term with a parent, or the last term returned by
get_the_terms(). There are ways of setting a preferred term by writing a hook into thebcn_pick_post_termfilter. If you do not want to write code, there are add-on plugins that provide an interface for you to set a preferred term within a taxonomy (Breadcrumb NavXT Paths and Order Bender).Forum: Plugins
In reply to: [Breadcrumb NavXT] Path priority – how?Since you are using a hierarchical taxonomy, it is assumed that a term with a parent is more useful than one without parent. The breadcrumb trail is trying to display the location of a resource within a site, being more specific (a term with a parent is assumed to be more specific) is more valuable.
Both Breadcrumb NavXT Paths and Order Bender are not in the .org repo, use Google to search for them.
You should be able to use the code from the linked article with a couple of adjustments. On line 4, you will need to change ‘category’ to ‘product_cat’, replace MYCATID with your tag_id (e.g. 30 in your example). On line 6, replace PAGEID with the ID of your page that you want to link to (e.g. 500 in your example)
Forum: Plugins
In reply to: [Breadcrumb NavXT] Path priority – how?When dealing with hierarchical taxonomies, Breadcrumb NavXT picks the first taxonomy term that has a parent set. There are ways of setting a preferred term using either an add-on plugin (Paths or Order Bender should work) or writing code to hook into the
bcn_pick_post_termfilter.Forum: Plugins
In reply to: [Breadcrumb NavXT] JS error on ie11I’ll look into it, but you probably should use a different web browser (Chrome or Firefox).
You should be able to deregister the script
bcn-breadcrumb-trail-block-scriptin an action set at a priority of 12 (or lower) on theinithook placed in a site-specific plugin. See https://developer.wordpress.org/reference/functions/wp_deregister_script/I think you have the wrong forum here. This is the support forum for Breadcrumb NavXT, you’re looking for the WP-PageNavi support forum: https://wordpress.org/support/plugin/wp-pagenavi/
Forum: Plugins
In reply to: [Breadcrumb NavXT] Multilingual Web – Navigation hierarchyAre you talking about the “root page” for a post type, or literally a parent post (of the applicable post type) for the current post? If you’re talking about the “root page”, you will need additional code to translate it (extensions exist for WPML and Polylang compatibility). If you are talking about a parent post for the current post, that should automatically translate when using WPML or Polylang.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Insert breadcrumb inline with main page contentAs long as the only issue is the horizontal placement (the vertical location is good), you may be better off modifying the styles that are applied to the breadcrumb trail so that it matches the behavior of the rest of the content on various window sizes. I recommend using your browser’s built-in inspector tool to help you find and test the appropriate styles.