Support Forum Forums Mixxcazt – Creative Multipurpose WooCommerce Theme How change ‘product-brand’ slag on different

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2687
    Avatarweberto
    Supported

    Hi,
    How can I change the name “product-brand” in the URL for the other name?
    Example: product-brand/aprilia/ -> brand/aprilia/

    #2691

    Hi you,

    Please copy and paste this code to file functions.php ( child-theme):

    add_filter( 'register_taxonomy_args',  'mixxcazt_change_product_brand_slug' );
    function mixxcazt_change_product_brand_slug($args){
        $args['rewrite']['slug'] = 'brand';
        return $args;
    }

    Then go to Settings -> Permalink Settings -> Save changes

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.