前提・実現したいこと
サイト全体のフォントは変えず、
記事内の一部分のフォントのみ変更したい。
フォントファイルは当該サーバー内においてある物を使いたい
発生している問題・エラーメッセージ
cssに font-faceで指定したが反映されない。
該当のソースコード
<テーマCSS内>
@font-face { font-family: 'font'; src: url('https://example.com/wp-includes/fonts/webfonts/font.eot'); src: url('https://example.com/wp-includes/fonts/webfonts/font.eot?#iefix') format('embedded-opentype'), url('https://example.com/wp-includes/fonts/webfonts/font.woff') format('woff'), url('https://example.com/wp-includes/fonts/webfonts/font.woff2') format('woff2'), url('https://example.com/wp-includes/fonts/webfonts/font.ttf') format('truetype'), } .customfont1 { font-family: “font”; }
<投稿画面内>
<span class=”customfont1“>サンプル文字abcABC</span>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/16 14:32
2019/07/16 14:39
2019/07/19 07:36