Nội dung video: trong phần này chúng ta sẽ di chuyển sidebar, breadcrumb, thanh phân trang (panination) trong woocommerce
Mời anh chị xem video:
Dưới đây là tóm tắt phần 2 này
Di chuyển code dưới đây vào vị trí muốn hiển thị sidebar
1 |
do_action( 'woocommerce_sidebar' ); |
1 |
remove_action("woocommerce_before_shop_loop","woocommerce_result_count",20); |
1 2 |
remove_action("woocommerce_before_main_content","woocommerce_breadcrumb",20); add_action("woocommerce_before_shop_loop","woocommerce_breadcrumb",20); |
1 2 |
remove_action("woocommerce_after_shop_loop","woocommerce_pagination",10); add_action("woocommerce_sidebar","woocommerce_pagination"); |
Mọi sự sao chép xin ghi rõ nguồn là fcwordpress.net
Chuyên trang về wordpress: hướng dẫn thiết kế theme, plugin, thủ thuật wordpress