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-..
Category : Hook
Đôi khi trong soạn thảo bài viết, cỡ chữ mặc định khá nhỏ, màu mờ gây khó nhìn. Vậy nên ta css để chữ to lên, màu sắc đậm thêm đoạn sau vào funtion // add css backend editor cho dễ dùng add_action( 'after_setup_theme', 'generate_child_setup' ); function generate_child_setup() { add_editor_style( 'editor-style.css' ); } Sau đó ..
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: https://stackoverflow.com/questions/50979203/how-can-i-change-the-product-h2-in-woocommerce-storef..
Thêm đoạn sau vào funtion theme remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description..
Thêm hàm sau vào function add_filter( ‘show_admin_bar’, ‘__return_false..
Phản hồi