Tùy biến hiển thị mã nhúng
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/
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 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…
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:…
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', 100 );
Thêm hàm sau vào function add_filter( ‘show_admin_bar’, ‘__return_false’ );