Author

admin

Icon Fa font by Svg and PNG

2 Tháng 11, 2018

Việc tránh sử dụng css quá nhiều gây ảnh hưởng tới trang a e nên sử dụng SVG để tối ưu tốc độ load trang nhé

Shortcodes Woocommerce

2 Tháng 11, 2018

1.Form Giỏ hàng [php] [woocommerce_cart] [/php] 2. Form thanh toán [php] [woocommerce_checkout] [/php] Form tài khoản [php] [woocommerce_my_account] [/php] form track order [php] [woocommerce_order_tracking] [/php] Sản phẩm nổi…

Hướng dẫn Tự tạo widget

1 Tháng 11, 2018

Đây là ví dụ tạo widget hiển thị bài viết ngẫu nhiên [php] class Random_Post extends WP_Widget { function __construct() { parent::__construct( ‘random_post’, ‘Bài ngẫu nhiên’, array( ‘description’…

Tích hợp Acf vào theme

31 Tháng 10, 2018

[php] add_filter(‘acf/settings/path’, ‘my_acf_settings_path’); function my_acf_settings_path( $path ) { // update path $path = get_stylesheet_directory() . ‘/acf/’; return $path; } // 2. customize ACF dir add_filter(‘acf/settings/dir’, ‘my_acf_settings_dir’); function my_acf_settings_dir(…

Bộ lọc the_excerpt

31 Tháng 10, 2018

[php] //Giới hạn 100 số từ cắt từ hàm the_excerpt : add_filter(‘excerpt_length’,function($number){ return 100; }); // thay đổi kí tự hiển thị xem tiếp trong hàm the_excerpt add_filter(‘excerpt_more’,function($more){…