0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

別ウィンドウで開く設定のリンクテキストの後ろに「矢印」アイコンを表示させて、WordPress内の記事をリッチにする時のお作法

Last updated at Posted at 2018-04-24

その「矢印」アイコンはこちら。

スタイルシート

style.css
// 矢印アイコン
.content a[target="_blank"]:after {
    margin: 0 3px;
    font-family: FontAwesome;
    vertical-align: middle;
    content: '\f08e';
    display: inline-block;
    text-decoration: none;
}

// 記事内の画像リンク
.content a[href$=".png"]:after, .content a[href$=".jpg"]:after, .content a[href$=".jpeg"]:after {
  margin: auto;
  content: '';
}

// カエレバの商品リンク
.content .kaerebalink-box a[target="_blank"]:after {
  margin: auto;
  content: '';
}

記事内の画像リンクと、WordPressにはお馴染みの「カエレバ」の商品リンクへのスタイルの適用を無効にしています。記事内の画像リンクは画像の種類(拡張子)に応じて増やしてください。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?