开发者 | versluis |
---|---|
更新时间 | 2018年5月12日 22:11 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 4.9.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directoryP2 Header Ad will wrap your code inside a DIV tag with the ID "p2HeaderAd". Simply re-position by targeting this ID. You can do this either in your Theme's styles.css file, or tweak p2-header-ad-styles.css inside the plugin's main directory.
Yes, it sits on top of your custom header graphic. It will adjust its height automatically so it should always look nice.
It takes about half an hour for fresh Google ads to appear. Until then you'll only see a blank space. Grab a coffee and check back a little later.
Google ads can only be shown up to 5 times on a single page. If your front page shows 5 posts or more, then the ad can no longer be displayed in the header (which is called last for performance reasons). If you want to use the after-content-front-page-ad feature, and you want the header to show first, you can tweak line 293 of the main plugin file (p2-header-ad.php) from this add_action ('get_footer', 'p2DisplayAdvert'); to add_action ('get_header', 'p2DisplayAdvert'); I may make this an option in the admin interface in a future update.
This is caused by the P2 theme, not by the plugin. As soon as this is fixed in P2, this message will disappear.