https://stackoverflow.com/questions/46353307/navigation-arrows-in-woocommerce-3-x-product-gallery-slider/4644840..
Category : Wordpress
Đôi khi import sản phẩm từ web cũ xang web mới sẽ bị tình trạng không hiển thị đánh giá, comment. Cách khắc phục ..
if ( ! function_exists( ‘woocommerce_template_loop_product_title’ ) ) { /** * Show the product title in the product loop. By default this is an H2. */ function woocommerce_template_loop_product_title() { echo ‘<h3 class=”woocommerce-loop-product__title”>’ . get_the_title() . ‘</h3>’; } } Tham khảo: https://wordpress.org/support/topic/change-loop-title-from..
Xóa nút Add to cart trong W..
Thêm hàm sau vào function add_filter( ‘show_admin_bar’, ‘__return_false..
function default_comments_on( $data ) { if( $data[‘post_type’] == ‘your_custom_post_name’ ) { $data[‘comment_status’] = 1; } return $data; } add_filter( ‘wp_insert_post_data’, ‘default_comments_on..
# BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.3] <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} !=on [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] </IfModule> # END rlrssslReall..
– Do nhiều lý do khi import bài viết, sản phẩm phần ảnh không import được xang. Sau đây mình hướng dẫn import bằng plugin: https://wordpress.org/plugins/media-from-ftp/ 1. Up load toàn bộ thư mục ảnh “uploads” từ website cũ ghi đè vào website mới 2. Cài plugin Media from FTP – Cấu hình như sau: Tuy ..
Thêm đoạn sau vào file functions.php define(‘ALLOW_UNFILTERED_UPLOADS’, true); Chú ý khi import xong nhớ xóa dòng này đi để website bảo mật hơn Tham khảo: Sửa lỗi WordPress ‘Sorry, This File Type Is Not Permitted For Security Reasons’ Sửa lỗi không thể import sản phẩm bằng file csv trên woocomme..
/* ** Cắt ảnh chi tiết sản phẩm */ add_filter( 'woocommerce_get_image_size_single', function( $size ) { return array( 'width' => 500, 'height' => 500, 'crop' => 1, ); } ); Tham khảo: https://themebynumbers.com/2018/04/18/how-to-override-woocommerce-im..
Phản hồi