Double “breadcrumb” on product pages / Advanced Custom Fields

This topic has 8 replies, 2 voices, and was last updated 1 years, 5 months ago ago by HUSSTLE

  • Avatar: HUSSTLE
    HUSSTLE
    Participant
    June 20, 2023 at 18:20

    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?

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 21, 2023 at 06:59

    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

    Please contact administrator
    for this information.
    Avatar: HUSSTLE
    HUSSTLE
    Participant
    June 21, 2023 at 13:20

    Rose – thanks for the reply and assistance.

    Please contact administrator
    for this information.
    Avatar: HUSSTLE
    HUSSTLE
    Participant
    June 21, 2023 at 13:24

    Sorry – forgot the request for FTP user access.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 21, 2023 at 16:56

    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

    Please contact administrator
    for this information.
    Avatar: HUSSTLE
    HUSSTLE
    Participant
    June 21, 2023 at 17:16

    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 !

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 22, 2023 at 08:22

    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

    Avatar: HUSSTLE
    HUSSTLE
    Participant
    June 22, 2023 at 14:01

    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?

  • Viewing 8 results - 1 through 8 (of 8 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.