1. 修改css文件
1.1 FTP文件路徑
原版:/home/www/htdocs/wp-content/themes/astra/assets/css/unminified/style.css
壓縮版:/home/www/htdocs/wp-content/themes/astra/assets/css/minified/style.min.css
1.2 WordPress后臺導航
Appearance -> Theme Editor -> assets -> css -> minified -> style.min.css
Appearance -> Theme Editor -> assets -> css -> unminified -> style.min.css
1.3 增加以下css代碼
@media only screen and (max-width: 320px) {
p {
font-size: 110%;
}
}
@media only screen and (max-width: 420px) {
p {
font-size: 110%;
}
}
@media only screen and (max-width: 544px) {
p {
font-size: 110%;
}
}
@media only screen and (max-width: 768px) {
p {
font-size: 110%;
}
}
@media only screen and (max-width: 782px) {
p {
font-size: 110%;
}
}
@media only screen and (max-width: 992px) {
p {
font-size: 110%;
}
}
2. 修改css版本號
FTP 文件路徑: /home/www/htdocs/wp-content/themes/astra/functions.php
WordPress后臺導航: Appearance -> Theme Editor -> Theme Functions
/**
* Define Constants
*/
define( 'ASTRA_THEME_VERSION', '2.5.5' ); // 每次修改css文件,版本號加1即可。
備注:如果不修改版本號壕鹉,修改css文件后無效果摇天。
3. 刪除緩存(重要)
3.1 清除 WP Super Cache 緩存
3.2 清除瀏覽器緩存