Change brands - by mawyta - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 5 years, 2 months ago ago by Rose Tyler

  • Avatar: mawyta
    mawyta
    Participant
    August 28, 2019 at 13:09

    Hello,
    HOW can I change the brands in the address bar for another word.

    Before we solved it in the woo line 585 file but it is no longer the solution (view image)
    https://ibb.co/Z2Qn6GK

    thanks

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 28, 2019 at 14:17

    Hello,

    Add this code in functions.php of the royal-child theme:

    remove_action( 'init', 'et_create_brand_taxonomies', 0 );
    add_action( 'init', 'et_create_brand_taxonomies_custom', 0 );
    
    function et_create_brand_taxonomies_custom() {
    		$labels = array(
    			'name'              => _x( 'Brands', 'royal-core' ),
    			'singular_name'     => _x( 'Brand', 'royal-core' ),
    			'search_items'      => esc_html__( 'Search Brands', 'royal-core' ),
    			'all_items'         => esc_html__( 'All Brands', 'royal-core' ),
    			'parent_item'       => esc_html__( 'Parent Brand', 'royal-core' ),
    			'parent_item_colon' => esc_html__( 'Parent Brand:', 'royal-core' ),
    			'edit_item'         => esc_html__( 'Edit Brand', 'royal-core' ),
    			'update_item'       => esc_html__( 'Update Brand', 'royal-core' ),
    			'add_new_item'      => esc_html__( 'Add New Brand', 'royal-core' ),
    			'new_item_name'     => esc_html__( 'New Brand Name', 'royal-core' ),
    			'menu_name'         => esc_html__( 'Brands', 'royal-core' ),
    		);
    
    		$args = array(
    			'hierarchical'      => true,
    			'labels'            => $labels,
    			'show_ui'           => true,
    			'show_admin_column' => true,
    			'query_var'         => true,
                'capabilities'			=> array(
                	'manage_terms' 		=> 'manage_product_terms',
    				'edit_terms' 		=> 'edit_product_terms',
    				'delete_terms' 		=> 'delete_product_terms',
    				'assign_terms' 		=> 'assign_product_terms',
                ),
    			'rewrite'           => array( 'slug' => 'brand' ),
    		);
    
    		register_taxonomy( 'brand', array( 'product' ), $args );
    	}

    and edit the slug there – https://prnt.sc/oypieh

    Regards

    Avatar: mawyta
    mawyta
    Participant
    August 29, 2019 at 17:34

    HI!
    Thanks!!!!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 30, 2019 at 07:11

    Hello,

    You’re welcome!

    Regards

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

The issue related to '‘change brands’' 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.