Sửa url product-brands trong plugin yith woocommerce brands
Yith woocommerce brands là một Plugin rất hay để quản lý thương hiệu trong wp. Tuy nhiên cái slug của nó thì mình ko thích tí nào. Vậy cùng đổi nó nhé.
B1: Cài đặt Plugin
B2: Vào Cpanel mở file class.yith-wcbr.php theo đường dẫn:
/ wp-content / plugins / yith-woocommerce-brands-add-on-premium / includes / class.yith-wcbr.php
Tìm đoạn sau:
[lock]
[code type="html"] 'rewrite' => array(
'slug' => apply_filters( 'yith_wcbr_taxonomy_rewrite', 'product-brands' ),
'hierarchical' => true,
'with_front' => apply_filters( 'yith_wcbr_taxonomy_with_front', true )
),
[/code]
[/lock]
Thay thế product-brands thành tên bạn muốn. Ví dụ: thuong-hieu
Sau đó vào Cài đặt > đường dẫn tĩnh > Save.
Nếu có cài cache thì clear nhé.
demo: https://dienmay.tech/thuong-hieu/oshima
Quảng cáo hiển thị ở đây
Một Plugin rất hay về nhà sản xuất cho shop sử dụng nền tảng wordpress
Trả lờiXóa