Forum Replies Created

Viewing 15 replies - 391 through 405 (of 2,399 total)
  • Plugin Author John Havlik

    (@mtekk)

    This is likely due to however you were trying to call the breadcrumb trail. Breadcrumb NavXT itself doesn’t add any calling code (unless you were using the widget, which would go away on deactivation). I’d start by searching your theme’s files for this code.

    Plugin Author John Havlik

    (@mtekk)

    Thanks for reporting this. I am tracking this in the following GitHub issue https://github.com/mtekk/Breadcrumb-NavXT/issues/248 and will have this fixed in the next release (7.0).

    Plugin Author John Havlik

    (@mtekk)

    In general, it isn’t a good idea to remove the link from a breadcrumb element in the breadcrumb trail. That said, it is possible to do so. However, you will need to write custom code to hook into the bcn_breadcrumb_linked filter. This article provides an example of how to use said filter: https://mtekk.us/archives/guides/remove-the-link-in-a-breadcrumb/

    If the problem is that you want to link to a page instead of the category archive, my recommendation would be to change the URL that shows up in the breadcrumb trail using the bcn_breadcrumb_url filter. This article provides an example of how to use said filter: https://mtekk.us/archives/guides/link-to-a-page-rather-than-the-category-archive-in-a-breadcrumb/ If you would prefer to be able to map terms to pages using a GUI rather than write custom code, an extension plugin, Breadcrumb NavXT Paths (premium) does provide a method of mapping terms to pages in the term editor.

    Plugin Author John Havlik

    (@mtekk)

    You really should not have “Blog” as a category. If it is not the frontpage of your site, then it should be a page and should be specified as the “Posts page” under Settings > Reading in the WordPress admin area. After that has been done, if you do not want a hierarchy leading to posts, in the Breadcrumb NavXT settings page, go to the “Post Types” tab. In that tab, uncheck the “Post Hierarchy Display” setting, and then press the “Save Changes” button at the bottom of the page.

    Plugin Author John Havlik

    (@mtekk)

    It looks like you have a property="item.name" attribute instead of the required property="name". Changing that seems to fix the issue in the the Structured Data Testing tool. Though, this may get back to the linked current items not playing nice (it’s a Google bug that they refuse to fix).

    Plugin Author John Havlik

    (@mtekk)

    In my response, I am making an assumption that in your last paragraph you are referring to assigning a post to a category/multiple subcategories when you said “I select”. If this is not correct, please let me know.

    Since the Category taxonomy is a hierarchical taxonomy, and Breadcrumb NavXT displays the resource hierarchy leading to a page, only one hierarchy will be displayed even if there are multiple valid hierarchies. So, using your example, a post that is a member of sub-cat a, sub-cat b, and sub-cat c, Breadcrumb NavXT will only select one of these hierarchies (you will see either Category A > sub-cat a > POSTNAME, Category A > sub-cat b > POSTNAME, or Category A > sub-cat c > POSTNAME). As to which sub-cat this is picked, by default, this is based on the order WordPress returns the terms, however, this can be overridden by the bcn_pick_post_term filter.

    Plugin Author John Havlik

    (@mtekk)

    While I’m not familiar with the Calendarize It! plugin, I took a look at the linked pages, and the issue seems to be you are using pages (instance of the Page post type) instead of the actual calendar category and said page is not a child of the Calendar page. So, on the actual calendar entries (end up being an instance of a custom post type), Breadcrumb NavXT is able to figure out the hierarchy and adds in the calendar category. But on the page that replaces the calendar category archive, Breadcrumb NavXT has no way to know that the calendar page should be a parent as it is not set as a parent of said page. The easy fix appears to be, in the page editor, change the parent page for each of the calendar category pages to Calendar.

    Plugin Author John Havlik

    (@mtekk)

    Breadcrumb NavXT doesn’t automatically output a breadcrumb trail upon being activated. It’s likely a feature of the theme you are using that is automatically adding the breadcrumb trail. You’ll need to check with your theme author/developer on how to not automatically display the breadcrumb trail.

    Plugin Author John Havlik

    (@mtekk)

    Thank you for your work. However, I do not maintain/ship translation files with Breadcrumb NavXT. Instead, Breadcrumb NavXT uses the WordPress.org translation facilities and language packs. Anyone with a WordPress.org account can contribute to the translations: https://translate.wordpress.org/projects/wp-plugins/breadcrumb-navxt

    Feel free to submit translations for any of the strings for your language here: https://translate.wordpress.org/locale/fa/default/wp-plugins/breadcrumb-navxt/

    Plugin Author John Havlik

    (@mtekk)

    The $allowed_html variable is an array, each key is for an HTML tag. So, you can use any method you like to add more keys. A simple way is to add more $allowed_html['KEY'] = array(); assignments.

    For example, the following should do what you want:

    function my_bcn_allowed_html($allowed_html)
    {
    	$allowed_html['svg'] = array(
    		'width' => true,
    		'height' => true,
    		'viewbox' => true,
    		'version' => true,
    		'xmlns' => true,
    		'xmlns:xlink' => true
    	);
    	$allowed_html['g'] = array(
    		'stroke' => true,
    		'stroke-width' => true,
    		'fill' => true,
    		'fill-rule' => true,
    		'transform' => true
    	);
    	$allowed_html['path'] = array(
    		'fill' => true,
    		'd' => true,
    		'fill-rule' => true
    	);
    	$allowed_html['polygon'] = array(
    		'points' => true
    	);
    	return $allowed_html;
    }
    add_filter('bcn_allowed_html', 'my_bcn_allowed_html');
    • This reply was modified 5 years, 7 months ago by John Havlik. Reason: forgot code tags/ticks
    Plugin Author John Havlik

    (@mtekk)

    Modifying breadcrumb-navxt.php is absolutely the wrong thing to do. You need to follow the article I linked and create a site specific plugin that contains a function that hooks into the bcn_allowed_html filter. Otherwise, every time you update Breadcrumb NavXT you will experience this issue.

    As for removing the current item, use the remove current item extension: https://github.com/mtekk/Breadcrumb-NavXT-Extensions/blob/master/breadcrumb_navxt_remove_curitm.php This will work much better than using a space in the breacrumb templates.

    Plugin Author John Havlik

    (@mtekk)

    So, Paths probably isn’t going to do what you want since you’re not using the product post type pages and instead using the page post type. For Breadcrumb NavXT to pick up on the hierarchy, it has to actually exist for the given resource (post, archive etc). Paths isn’t going to magically resolve things here. And, by using the page post type, you’re creating more problems as Breadcrumb NavXT treats that post type differently than all others (it can be the root of other post types, and can only use the ‘post parent’ hierarchy in the breadcrumb trail).

    You’re really creating more work for yourself by using the product short code and recreating every product in a page. Is the something you’re having an issue doing when using the WooCommerce product post type?

    • This reply was modified 5 years, 7 months ago by John Havlik.
    • This reply was modified 5 years, 7 months ago by John Havlik. Reason: clarifying answer
    Plugin Author John Havlik

    (@mtekk)

    What version of Breadcrumb NavXT did you upgrade from? I ask as this would have been a problem for all modern versions of Breadcrumb NavXT (since 4.3.0 which was released 7 years ago).

    You will need to add the SVG tags and attributes to the allowed HTML tags for the breadcrumb templates. The following article covers how to use the bcn_allowed_html filter to add a tag and attributes to the allowed HTML tag list for breadcrumb templates: https://mtekk.us/archives/guides/how-to-add-li-and-other-tags-to-breadcrumb-templates/

    Plugin Author John Havlik

    (@mtekk)

    If you are trying to create a multilingual site, I strongly encourage you to use a plugin such as Polylang or WPML to assist you. These plugins, for the most part, will handle this link translation (they just don’t cover translating the breadcrumb templates or the root pages for custom post types, which is implemented in a helper plugin (premium) for each of those multilingual plugins)

    Otherwise, you can always use the bcn_breadcrumb_url filter to modify the URL for any breadcrumb in the breadcrumb trail.

    Plugin Author John Havlik

    (@mtekk)

    Hi Leonidas,

    The best way to do this is likely with CSS media-queries (see https://css-tricks.com/a-complete-guide-to-css-media-queries/) where you hide the breadcrumb trail on screens that are too small. The below example should get you going, you may need to change 700px to a different value based on the screen widths you are targeting.

    @media(max-width: 700px){
        .breadcrumbs{
            display: none;
        }
    }
Viewing 15 replies - 391 through 405 (of 2,399 total)