This topic has 8 replies, 2 voices, and was last updated 1 years, 5 months ago ago by HUSSTLE
I only want 1 breadcrumb on product pages, but it appears somehow/somewhere I checked a box and cannot figure out what controls the breadcrumb I want to eliminate.
Can you best assist what setting is controlling the breadcrumbs?
####
Additionally, what would be the steps to incorporate Advanced Custom Fields into a product page?
Hello, HUSSTLE,
Thank you for contacting us and for using XStore.
Please provide temporary wp-admin and FTP access, so we can take a closer look and help you.
Kind Regards,
8theme team
Rose – thanks for the reply and assistance.
Sorry – forgot the request for FTP user access.
Hello, HUSSTLE,
Thank you for your response.
1/ Private Content.
2/ For testing you can check the product in private area.
Code was added to xstore-child/functions.php
add_filter('etheme_single_product_builder_tabs', 'etheme_single_product_builder_tabs_acf_custom');
function etheme_single_product_builder_tabs_acf_custom($tabs) {
global $product;
if ( !function_exists('get_field_object') ) return $tabs;
$product_id = method_exists( $product, 'get_id' ) === true ? $product->get_id() : $product->ID;
$min_priority = 60;
$product_features_obj = get_field_object('product_features', $product_id);
if ( $product_features_obj ) {
$tabs[$product_features_obj['ID']] = array(
'title' => $product_features_obj['label'],
'priority' => $min_priority++,
'callback' => function ( $custom ) use ( $product_features_obj ) {
echo do_shortcode( $product_features_obj['value'] );
},
);
}
Kind Regards,
8theme team
Rose – thanks kindly.
As for the breadcrumb, can it be shown for the full path instead of the truncated “Home » Shop » product name” ?
We really like the “Home » Woodworking » 128V XR Combis Impact Drivers” and allow the breadcrumb to “expand” depending on the sub grouping within the parent category.
In short – the top breadcrumb would be removed and the bottom stay in place.
Thanks!
As for the ACF integration – THANKS 1,000,000 !
Hello, HUSSTLE,
In this case, set the next settings – https://prnt.sc/_UK7UI7bC5A8 in Theme options > WooCommerce > Single Product builder, and ann the next code in Theme Options > Theme custom CSS > Global:
.single-product .woo-breadcrumbs {
display: none !important;
}
you will get – https://prnt.sc/b8tctu-O81oS
Kind Regards,
8theme team
Rose – EXCELLENT.
Rose – sorry, after looking at the breadcrumb again, as I moved up to the path, the breadcrumb changes to center alignment and not left. Can you take a look and see what needs to happen to have the breadcrumb remain consistent on all product pages and page categories?
The issue related to '‘Double “breadcrumb” on product pages / Advanced Custom Fields’' has been successfully resolved, and the topic is now closed for further responses