Hiện tại mình sử dụng pluign Advanced Editor Tools hiện tại ở khung soạn thảo văn bản đang hiển thị dạng % và pt mình và khách hàng không sử dụng quen, muốn đổi cái tiny soạn thảo này sang dạng px thì làm như thế nào? bạn nào biết cho mình xin đoạn code, mình đang sử dụng plugin Advanced Editor Tools themes Flatsome của Wordpress
Bạn add code sau vào tập tin function.php của themes nhé. PHP: // Add custom Theme Functions hereif ( ! function_exists( 'itseovn_convert_text_sizes' ) ) { function hiepdesign_mce_text_sizes( $initArray ){ $initArray['fontsize_formats'] = "9px 10px 12px 13px 14px 16px 17px 18px 19px 20px 21px 24px 28px 32px 36px"; return $initArray; } add_filter( 'tiny_mce_before_init', 'itseovn_convert_text_sizes', 99 );}