Title: P2 Header Ad
Author: Jay Versluis
Published: <strong>2013년 10월 8일</strong>
Last modified: 2018년 5월 12일

---

플러그인 검색

![](https://ps.w.org/p2-header-ad/assets/banner-772x250.png?rev=993909)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://ps.w.org/p2-header-ad/assets/icon-256x256.png?rev=993909)

# P2 Header Ad

 작성자: [Jay Versluis](https://profiles.wordpress.org/versluis/)

[다운로드](https://downloads.wordpress.org/plugin/p2-header-ad.1.7.zip)

 * [세부사항](https://ko.wordpress.org/plugins/p2-header-ad/#description)
 * [평가](https://ko.wordpress.org/plugins/p2-header-ad/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/p2-header-ad/#installation)
 * [개발](https://ko.wordpress.org/plugins/p2-header-ad/#developers)

 [지원](https://wordpress.org/support/plugin/p2-header-ad/)

## 설명

Once installed, head over to Appearance – P2 Header Ad and paste your ad code into
the box.

Features:

 * preview your ad in the admin interface (see screenshots)
 * option to hide the ad for logged-in users
 * option to hide the ad for logged-in WP eMember users
 * works with and without a header image
 * option to show the same ad after the post content

I’ve optimised the plugin for a 468×80 pixel ad. Other sizes will work but may require
your own CSS tweaks to make them look right.

## 스크린샷

[⌊see your ad displayed on the P2 front page⌉⌊see your ad displayed on the P2 front
page⌉[

see your ad displayed on the P2 front page

[⌊the Admin Interface let's you paste HTML code quickly and easily (under Appearance-
P2 Header ad)⌉⌊the Admin Interface let's you paste HTML code quickly and easily (
under Appearance - P2 Header ad)⌉[

the Admin Interface let’s you paste HTML code quickly and easily (under Appearance–
P2 Header ad)

## 설치

 1. Either: Upload the entire folder to `/wp-content/plugins/` directory
 2. Or: download the ZIP file, then head over to Plugins – Add New – Install, then 
    browse to your file
 3. Or: from Plugins – Add New, search for this plugin and hit “install”
 4. Then: Activate it through the ‘Plugins’ menu in WordPress
 5. Under Appearance – P2 Header Ad you’ll find an admin interface to paste your HTML
    code

## FAQ

  Installation Instructions

 1. Either: Upload the entire folder to `/wp-content/plugins/` directory
 2. Or: download the ZIP file, then head over to Plugins – Add New – Install, then 
    browse to your file
 3. Or: from Plugins – Add New, search for this plugin and hit “install”
 4. Then: Activate it through the ‘Plugins’ menu in WordPress
 5. Under Appearance – P2 Header Ad you’ll find an admin interface to paste your HTML
    code

  I’m using a different ad size than 468×80 pixels. How do I tweak the CSS?

P2 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.

  Will this plugin work with a custom header graphic?

Yes, it sits on top of your custom header graphic. It will adjust its height automatically
so it should always look nice.

  I’m using Google Adsense ads, but they don’t show up. What gives?

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.

  I’m showing ads on the front page after the post content – but now the header 
ad is gone. What’s up with that?

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’);

종료

add_action (‘get_header’, ‘p2DisplayAdvert’);

I may make this an option in the admin interface in a future update.

  I’m getting a nasty deprecation warning in DEBUG mode…?

This is caused by the P2 theme, not by the plugin. As soon as this is fixed in P2,
this message will disappear.

## 후기

![](https://secure.gravatar.com/avatar/f2a4b991356cc707cbe41edd396d5bf1c22cbf84d70e98fea3dfcc2265e775ba?
s=60&d=retro&r=g)

### 󠀁[Nice!](https://wordpress.org/support/topic/nice-3441/)󠁿

 [Vladimir Vassilev](https://profiles.wordpress.org/vloo/) 2020년 5월 25일

Works just fine! I’ll use it for internal important notifications but definitely
saved me some time for writing this feature myself 🙂

 [ 모든 1 평가 읽기 ](https://wordpress.org/support/plugin/p2-header-ad/reviews/)

## 기여자 & 개발자

“P2 Header Ad”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

 *   [ Jay Versluis ](https://profiles.wordpress.org/versluis/)

[자국어로 “P2 Header Ad”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/p2-header-ad)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/p2-header-ad/)는, [SVN 저장소](https://plugins.svn.wordpress.org/p2-header-ad/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/p2-header-ad/)
을 [RSS](https://plugins.trac.wordpress.org/log/p2-header-ad/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.7

 1. fixed a warning that made PHP assume a non-existent constant instead of a function
 2. verified compatibility with WordPress 4.9.5

#### 1.6

 1. styles are now loaded via wp_enqueue_scripts hook
 2. fixed a debug warning that assumed a constant rather than a value

#### 1.5

 1. added option to display the same ad at the end of single posts
 2. added option to hide ads at the end of front-page/blog-page posts

#### 1.4

 1. added the option to hide ad when users are logged into eMember (plugin by Tips 
    and Tricks HQ)

#### 1.3

 1. added translation readiness
 2. added German Translation
 3. added Spanish Translation (thanks to Andrew Kurtis)

#### 1.2

 1. tweaked placement of advert: now it’s fixed to the header
 2. added funky fade-in effect when the site loads

#### 1.1

 1. added option to remove the ad for logged-in users

#### 1.0

 1. initial Release

## 기초

 *  버전 **1.7**
 *  최근 업데이트: **8년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 3.3 또는 그 이상 **
 *  다음까지 시험됨: **4.9.31**
 *  언어
 * [English (US)](https://wordpress.org/plugins/p2-header-ad/)
 * 태그:
 * [ad](https://ko.wordpress.org/plugins/tags/ad/)[advert](https://ko.wordpress.org/plugins/tags/advert/)
   [code](https://ko.wordpress.org/plugins/tags/code/)[header](https://ko.wordpress.org/plugins/tags/header/)
   [p2](https://ko.wordpress.org/plugins/tags/p2/)
 *  [고급 보기](https://ko.wordpress.org/plugins/p2-header-ad/advanced/)

## 평점

 별 5점 만점에 5점.

 *  [  1/5-별점 후기     ](https://wordpress.org/support/plugin/p2-header-ad/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/p2-header-ad/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/p2-header-ad/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/p2-header-ad/reviews/?filter=2)
 *  [  0/1-별점 후기     ](https://wordpress.org/support/plugin/p2-header-ad/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/p2-header-ad/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/p2-header-ad/reviews/)

## 기여자

 *   [ Jay Versluis ](https://profiles.wordpress.org/versluis/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/p2-header-ad/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=34B76TPRWMWAE)