This topic has 4 replies, 2 voices, and was last updated 5 years, 2 months ago ago by Rose Tyler
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
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
HI!
Thanks!!!!
Hello,
You’re welcome!
Regards
The issue related to '‘change brands’' has been successfully resolved, and the topic is now closed for further responses