// Copy đoạn code sau bỏ vào file functions.php add_action( 'wp_enqueue_scripts', 'wpshare247_register_scripts' ); function wpshare247_register_scripts() { //Css wp_enqueue_style( 'my_css_custom_1.css', get_theme_file_uri( '/js-libs/slick-1.8.1/slick/slick.css' ), false, '1.8.1' ); wp_enqueue_style( 'my_css_custom_2.css', get_theme_file_uri( '/js-libs/slick-1.8.1/slick/slick-theme.css' ), false, '1.8.1' ); //Javascript, Thư viện jQuery wp_enqueue_script( 'my_custom_1.js', get_theme_file_uri( '/js-libs/slick-1.8.1/slick/slick.min.js' ) , array(), '1.8.1', true ); } add_action('wp_head', 'wpshare247_woo_product_gallery_slider');...
Hướng dẫn tạo Product Data Tabs trong WooCommerce – WordPress Tutorial
1. WooCommerce text input box //text input box woocommerce_wp_text_input( array( 'id' => 'wpshare247_wooc_text_input', 'value' => get_post_meta( get_the_ID(), 'wpshare247_wooc_text_input', true ), 'label' => __( 'Trường Text Box', 'woocommerce' ), 'placeholder' => __( 'Nhập giá trị placeholder', 'woocommerce' ), 'class' => 'wpshare247-c1 wpshare247-c2', 'style' => 'color:red;', 'wrapper_class' => 'wpshare247-wrapper-c1 wpshare247-wrapper-c2', 'type' =>...
Hướng dẫn tạo Đánh Giá Review Sản Phẩm có đính kèm hình ảnh, video, media WooCommerce miễn phí – WordPress
1. Code functions.php Kiểm tra Plugin hoạt động hay chưa? if ( is_plugin_active( 'woocommerce/woocommerce.php' ) && is_plugin_active( 'customer-reviews-woocommerce/ivole.php' ) ) { require 'wpshare247-product-review.php'; } 2. Code wpshare247-product-review.php <?php // Đánh giá sản phẩm có hình add_filter( 'woocommerce_product_tabs', 'wpshare247_remove_product_tabs', 98 ); function wpshare247_remove_product_tabs($tabs){ unset( $tabs['reviews'] ); $tabs['wpshare247-custom-reviews'] = array( 'title' =>...