<---------------------------- ----------------------------> <---------------------------- ----------------------------> --------------------> WordPress Google AdSense Plugin の挿入位置変更 – Inside of Papaya

WordPress Google AdSense Plugin の挿入位置変更

Google AdSense Plugin っていうプラグイン使っているんだけど、
これ、設定は超簡単なんだけど、一方で細かいところに手が届かない感じ。


例えば、広告の入る位置なんだけど、左右は設定画面から調整できないのよね。


で、ソース弄ったらできちゃいました。


弄るファイルはこれ↓


/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/adsense-plugin/adsense-plugin.class.php
(Bitnami WordPress の場合です)


[php gutter=”false”]
<style type="text/css">
.ads {
position: relative;
text-align: center;
clear: both;
}
</style>
[/php]
ここの text-align を”center” から “left” に変える。
[php gutter=”false”]
<style type="text/css">
.ads {
position: relative;
text-align: left;
clear: both;
}
</style>
[/php]


こんな感じです。


Fatal error: Uncaught Error: Call to undefined function related_posts() in /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-content/themes/hueman-child/single.php:71 Stack trace: #0 /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-includes/template-loader.php(106): include() #1 /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-blog-header.php(19): require_once('/home/insidepap...') #2 /home/insidepapaya/insideofpapaya.com/public_html/index.php(17): require('/home/insidepap...') #3 {main} thrown in /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-content/themes/hueman-child/single.php on line 71