Wordpress⑧カスタマイズ
デフォルトの状態ではブログが見にくかったので変更しました:)
外観→テーマ編集→スタイルシート
スタイルシートの編集はパーミッションの設定をしてから行います。
# find / |grep style.css
/var/www/html/wordpress/wp-content/themes/esquire/style.css
/var/www/html/wordpress/wp-content/themes/sugar-and-spice/style.css
/var/www/html/wordpress/wp-content/themes/supernova/style.css・・・・・・・
# cd //var/www/html/wordpress/wp-content/themes/sugar-and-spice/style.css
# ls -la
-rw-r--r-- 1 root root 442 Apr 15 13:12 sidebar.php
-rw-r--r-- 1 root root 1618 Apr 15 13:12 single.php
-rw-r--r-- 1 root root 30148 Apr 15 13:12 style.css・・・・・・
# chmod 777 style-.css
①フォントと色を変える
変更箇所が太字です。上がABOUT ME、下が本文の箇所にあたります。
/* 01. Basic Styles & Typography
================================================== */
body {
font-size: 87.5%;
line-height: 1.5;
font-family: メイリオ, Meiryo, Osaka, “ヒラギノ角ゴ Pro W3″, “Hiragino Kaku Gothic Pro”, “MS Pゴシック”, “MS PGothic”, sans-serif;
color: #000000; /*#797979*/
-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
-webkit-text-size-adjust: 100%;
-ms-word-wrap: break-word;
word-wrap: break-word;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
color: #000000;
font-family: メイリオ, Meiryo, Osaka, “ヒラギノ角ゴ Pro W3″, “Hiragino Kaku Gothic Pro”, “MS Pゴシック”, “MS PGothic”, sans-serif; /*"Raleway", Arial, sans-serif;*/
font-weight: 800;
margin: 0.75em 0;
}
②背景
外観→背景→画像のアップロード→タイル
③もし反映されなかったら・・・
キャッシュを消去します。履歴→キャッシュ→すべて
変更前と比較をば。変更後もタイトルが薄いですね。