Okay
  Public Ticket #1991424
Brands
Closed

Comments

  • ggvvmm started the conversation

    Can i change the name of Brands with another word?

    I need to change it both in the URL and also in the shop filter.

    Thank you very much.

  •  895
    Linh replied

    Hello

    You can set custom slug for brand to change the name on url: 

    http://prntscr.com/ni5e6a

    and follow our article bellow to change the text content:

    How to translate the theme

    Thanks

  • ggvvmm replied

    Thank you very much Linh.

    It works well: I changed "brand" with "colegios" (=  schools) but i keep seeing this:

    1.  click on Products >> Brands

    2.  Click on "ver" (= wiev) brand

    3. the page with all the products of the selected brand opens. The slug keeps showing "brand" instead of my translation.

    Can I change this slug? I want something like www.mysite/school/school-name/ instead of www.mysite/brand/school-name/

    If i have to modify something in functions.php i can do it, just guide me.

    Thank you very much.

    Attached files:  Schermata 2019-05-02 alle 09.47.47.png
      Schermata 2019-05-02 alle 09.47.56.png

  •  895
    Linh replied

    Hello

    You can add the code bellow to functions.php to change it:

    function customise_product_brand_slug ( $tax ) {
        $tax['rewrite']['slug'] = 'custom-slug'; // Replace 'custom-slug' with your desired slug.
        return $tax;
    }
    add_filter( 'register_taxonomy_product_brand', 'customise_product_brand_slug' );
    

    https://docs.woocommerce.com/document/wc-brands/

    Go to Settings > Permalinks and re-save after adding the above code snippet. This ensures your permalinks are refreshed and ready to go, using the new brand slug.

    Thanks

  • ggvvmm replied

    Thank you very much, it worked fine! Great support!!

  •  895
    Linh replied

    Hi 

    I hope you're happy with it.

    Please contact if you have any problem so i can help you check.

    Your satisfaction is our pleasure - Please vote and send your comments to us if you happy with our products and support.

    Thanks a lot!