Support » Plugin: YITH WooCommerce Brands Add-On » Change brand URL and Breadcrumb

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,
    hope you are doing well! 🙂

    To change the Brands breadcrum , you have to copy the next code in the functions.php of your theme.

    if( ! function_exists('yith_wcbr_taxonomy_label_name_custom')) {
     function yith_wcbr_taxonomy_label_name_custom( $taxonomy_name ) {
     $taxonomy_name = 'Values';
     return $taxonomy_name;
     }
        add_filter( 'yith_wcbr_taxonomy_label_name', 'yith_wcbr_taxonomy_label_name_custom', 10 );
    }

    To change the URL, could you try with the next code, please?

    if( defined( 'YITH_WCBR' ) && ! function_exists( 'yith_wcbr_change_taxonomy_rewrite' ) ){
     function yith_wcbr_change_taxonomy_rewrite(){
     return 'values';
       }
     add_filter( 'yith_wcbr_taxonomy_rewrite', 'yith_wcbr_change_taxonomy_rewrite' );
    }

    Could you check them and let us know, please?

    Have a nice day!

    Thread Starter kindpreneurs

    (@kindpreneurs)

    Thanks so much the breadcrumb worked perfectly!

    The url has changed but takes users to 404 page not found. You can test this by looking at this product and clicking on any of the little blue ‘Value’ icons (above social sharing icons)

    Many thanks for your help 🙂

    Thread Starter kindpreneurs

    (@kindpreneurs)

    Hi there, just checking in to see if you’ve managed to solve the URL 404 issue?

    Many thanks for your help,

    Karen

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well! 🙂

    Have you tried to regenerate rewrite rules?

    Please, visit WP Dashboard -> Settings -> Permalinks and save your options as they are to regenerate rewrite rules.

    Let us know.

    Have a great day!

    Thread Starter kindpreneurs

    (@kindpreneurs)

    YAY that worked a treat!! Thank you ever so much for all your help and a fabulous plugin! 🙂

    Plugin Author YITHEMES

    (@yithemes)

    Hello @kindpreneurs,

    I hope you’re doing well 🙂

    I’m glad my solution helped you.

    I’m going to close this topic but I would like to ask you to share your opinion about us on a review.

    Here is the link for leave a review.

    Have a good day.

    Thread Starter kindpreneurs

    (@kindpreneurs)

    Thank you very much I shall do that now 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change brand URL and Breadcrumb’ is closed to new replies.