Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #936339

    Hey guys!
    How can I change the breadcrumbs link without using any plugins?
    What I have – https://mysite.com/product-category/bedroom-sets/
    What I want to get – https://mysite.com/catalog/bedroom-sets/
    Page ‘catalog’ is made by me using layout builder. Page ‘product-category’ is created by permanent links and looks not like exprected.

    Tried this just to see how it works, but nothing happens.

    add_filter( 'woocommerce_breadcrumb_defaults', 'wcc_change_breadcrumb_home_text' );
    function wcc_change_breadcrumb_home_text( $defaults ) {
    	$defaults['home'] = 'Apartment';
    	return $defaults;
    }
    #936526

    Hey srs6270,

    What you’re talking about here is permalinks not breadcrumbs and so this code will not work for you.

    You might want to use a plugin for that, like this one

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.