###前提・実現したいこと
WordPressのデフォルトテーマTwentyTwelveで、ヘッダー画像の枠線を消したい(下記参考URL)
https://www.nishi2002.com/3789.html
###試したこと
子テーマの中の、「style.css」で
.entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image { /* Add fancy borders to all WordPress-added images … */ border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
をborder-radiusとbox-shadowの値を0にして、
.entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image { /* Add fancy borders to all WordPress-added images … */ border-radius: 0px; box-shadow: none; }
にしました。
コメントアウトも試しました↓
.entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image { /* Add fancy borders to all WordPress-added images … */ /* border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); } */
どちらも何も変化が現れず、困っております。
どなたかご教授願います。
###補足情報(言語/FW/ツール等のバージョンなど)
WordPress 4.8.3
親テーマのTwentyTwelveのバージョン: 2.3
質問文のコードはそれぞれコードブロックで囲んでいただけませんか? ```(バッククオート3つ)で囲み、前後に改行をいれるか、コードを選択して「<code>」ボタンを押すとコードブロックになります。
回答2件
あなたの回答
tips
プレビュー