Breadcrumb UX feedback
-
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.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Breadcrumb UX feedback’ is closed to new replies.