Category

Wordpress

44 articles in this category

Show mô tả ngắn biến thể sản phẩm trong Woocommerce

26 Tháng 2, 2023 3 min read

<?php // Display variations dropdowns on shop page for variable products add_filter( 'woocommerce_loop_add_to_cart_link', 'woo_display_variation_dropdown_on_shop_page' ); function woo_display_variation_dropdown_on_shop_page() { global $product; if( $product->is_type( 'variable' )) { $attribute_keys = array_keys(…

Kích hoạt plugin Wordfence

19 Tháng 2, 2023 1 min read

Cài bản free, bấm kích hoạt mới, truy cập vào trang chủ chọn gói free, nhập mail để nhận kích hoạt, sau đó cài đè bản pro vào

Tùy biến hiển thị mã nhúng

24 Tháng 9, 2020 1 min read

Xem thêm tại: https://www.sitepoint.com/customizing-wordpress-oembed-content/   Hoặc bài khác: https://www.smashingmagazine.com/2012/11/embeddable-content-wordpress/

Đổi thẻ heading sản phẩm trong danh mục sản phẩm

10 Tháng 8, 2020 1 min read

Cụ thể đổi thẻ h2 xang h3 remove_action( ‘woocommerce_shop_loop_item_title’,’woocommerce_template_loop_product_title’, 10 ); add_action(‘woocommerce_shop_loop_item_title’, ‘abChangeProductsTitle’, 10 ); function abChangeProductsTitle() { echo ‘<h3 class=”woocommerce-loop-product_title”>’ . get_the_title() . ‘</h3>’; } tham khảo:…

Add theme hỗ trợ Woocommerce không bị lỗi khi update

28 Tháng 2, 2020 1 min read

add_action( 'after_setup_theme', 'setup_woocommerce_support' ); function setup_woocommerce_support() { add_theme_support('woocommerce'); } Nguồn: https://wordpress.stackexchange.com/questions/90199/how-to-declare-woocommerce-support-in-your-theme Hoặc đoạn đầy đủ dưới: // add theme suport WooCommerce function akasa_theme_setup() { // WooCommerce in general.…

Tùy biến thu mục theme, plugin

28 Tháng 12, 2019 1 min read

Thêm vào wp-config.php if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); define ('WP_CONTENT_FOLDERNAME', 'frontend'); define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME) ; define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/'); define('WP_CONTENT_URL', WP_SITEURL…