Author Archives: vntopno1

Những đoạn code tùy biến website

1/ Hook thêm code vào sản phẩm add_action(‘woocommerce_after_shop_loop_item_title’,’add_cart_icon’); function add_cart_icon(){ global $product; // The output is still filterable through the same filter // $args and $attributes are made available to the filter echo apply_filters( ‘woocommerce_loop_add_to_cart_link’, sprintf( ‘<a rel=”nofollow” href=”%s” %s> <img src=”http://duan4.cvbanks.net/wp-content/uploads/2020/06/Group-59.png”> &gt;</a>’, esc_url( $product->add_to_cart_url() ), implode( ‘ ‘, $attributes )), $product, $args, $attributes );…

Tùy biến slider flatsome thành phân trang

Hiển thị số thay vì biểu tượng dots rất đơn giản, áp dụng cho sản phẩm hoặc các Block Slider khác chỉ cần chèn thêm class flickity-pagination theo file đính kèm và thêm css bên dưới Bác nào không hiểu ib e chỉ chi tiết nhé  /*** Thay biểu tượng dots bằng số – Dev…

Chèn Bình luận Facebook vào website WordPress

// Chèn Script này lên header hoặc footer <div id=”fb-root”></div> <script async defer src=”https://connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v2.6″></script> // Chèn vào trong file Function.php của Theme add_action(‘woocommerce_product_after_tabs’,’fv_before_product_content’); function fv_before_product_content(){ /*$output = ‘<div class=”fb-comments” xid=”‘.get_permalink().'” width=”auto” data-numposts=”20″ data-colorscheme=”light” data-version=”v2.3″></div>’;*/ $output = ‘<div class=”fb-comments” data-href=”https://netsiu.com” data-numposts=”5″ width=”auto” data-order-by=”reverse_time”></div>’; echo $output; }