WordPress Google AdSense Plugin の挿入位置変更
Google AdSense Plugin っていうプラグイン使っているんだけど、
これ、設定は超簡単なんだけど、一方で細かいところに手が届かない感じ。
例えば、広告の入る位置なんだけど、左右は設定画面から調整できないのよね。
で、ソース弄ったらできちゃいました。
弄るファイルはこれ↓
/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/adsense-plugin/adsense-plugin.class.php
(Bitnami WordPress の場合です)
<style type="text/css"> .ads { position: relative; text-align: center; clear: both; } </style>ここの text-align を”center” から “left” に変える。
<style type="text/css"> .ads { position: relative; text-align: left; clear: both; } </style>
こんな感じです。