• Resolved irishetcher

    (@irishetcher)


    When using the breadcrumb it include the product name which is redundant where the title of the product is already displayed. This is an issue where the breadcrumb wraps on mobile when it is too long with the product name.

    Yo can use the following to remove the product name but it leaves the category unlinked, defeating the purpose of the breadcrumb.

    function ed_change_breadcrumb( $breadcrumb ) {
    	
      if(is_singular()){
    		array_pop($breadcrumb);
    	}
      
      return $breadcrumb;
    }
    add_filter( 'woocommerce_get_breadcrumb', 'ed_change_breadcrumb' );

    Looking at the output in Chrome console, there is no obvious was to remove the product name with css. If the output for the name was in woocommerce-breadcrumb:after there would be a way to display: none;

    But, as I said above already, having the product name in the breadcrumb serves no purpose.

    • This topic was modified 4 years, 9 months ago by Yui.
    • This topic was modified 4 years, 9 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @irishetcher,

    Thanks for your feedback and we’d suggest adding this to the official ideas board for the WooCommerce plugin. You can find the WooCommerce Ideas board located here below. Our developers read these ideas regularly to see what ones are becoming popular as all features/changes are prioritized based on customer demand

    https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=36092

    I am having the same issue. Please let me know how to resolve this issue. The category is unlinked.

    I have the same issue. A workaround I have found is to make the text color white (with a white background), so that the product text just does not show up. I also added a “/” divider within the Home link so that it looks like there is a divider – otherwise the divider is white like the rest of the text.

    Hopefully this becomes a new feature in the future, we need a specific class for the product so that it can be adjusted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breadcrumb UX feedback’ is closed to new replies.