[카테고리:] 서버-리눅스

  • Connecting WordPress and Adsense

    Connecting WordPress and Adsense

    For Twenty Twenty-Five theme, which is a Full Site Editing (FSE) block theme, the safest and recommended way to add Google AdSense code is by using a plugin rather than editing theme files directly.


    Method 1: Using the WPCode Plugin (Recommended)

    Step 1: Install WPCode

    In your WordPress dashboard:

    Plugins
    → Add New Plugin
    

    Search for:

    WPCode
    

    Install and activate the plugin.


    Step 2: Add the AdSense Code to the Header

    Go to:

    Code Snippets
    → Header & Footer
    

    Paste your Google AdSense code into the Header section.

    Example:

    <script async
    src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxxx"
    crossorigin="anonymous"></script>
    

    Click Save Changes.


    Method 2: Using Site Kit by Google (Easiest)

    Install Site Kit

    Go to:

    Plugins
    → Add New Plugin
    

    Search for:

    Site Kit by Google
    

    Install and activate it.


    Connect Your Google Account

    Go to:

    Site Kit
    → Start Setup
    → Sign in with Google
    → Connect AdSense
    

    Enable Auto Ads

    In your AdSense account:

    Ads
    → By Site
    → jldnet.kr
    → Turn Auto Ads ON
    

    Google will automatically place ads throughout your site.


    Method 3: Insert Ads Inside Posts

    While editing a post:

    + Add Block
    → Custom HTML
    

    Paste your AdSense ad unit code:

    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
         data-ad-slot="1234567890"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    

    Method 4: Add a Sidebar Ad

    The Twenty Twenty-Five theme does not include a sidebar by default.

    You can create one using:

    Appearance
    → Editor
    → Templates
    

    Add a two-column layout:

    Columns
    ├── Main Content
    └── Ad Area
    

    Then insert a Custom HTML block into the ad column and paste your AdSense code.


    Recommended Ad Placement for Maximum Revenue

    1. Below the Post Title

    Post Title
    ────────────
    Ad
    ────────────
    Beginning of Article
    

    2. After the 2nd or 3rd Paragraph

    Paragraph 1
    
    Paragraph 2
    
    Ad
    
    Paragraph 3
    

    3. At the End of the Article

    Article Content
    
    Ad
    
    Related Posts
    

    Recommended Setup for Twenty Twenty-Five + Rank Math SEO + AdSense

    Homepage
    │
    ├── Auto Ads
    ├── Ad Below Title
    ├── In-Content Ad
    ├── End-of-Post Ad
    └── Mobile Anchor Ads
    

    This combination is currently one of the most effective setups for blog monetization.


  • 워드프레스에 에드센스 연결하는 방법

    워드프레스에 에드센스 연결하는 방법

    워드프레스에서 에드센스와 연결하고 동기화는 방법을 아래와 같습니다.Twenty Twenty-Five 테마는 블록 테마(FSE, Full Site Editing)이므로 header.php를 직접 수정하는 것보다 WPCode 플러그인이나 코드 삽입 플러그인을 사용하는 것이 가장 안전합니다.


    방법 1. WPCode 플러그인 사용 (추천)

    ① 플러그인 설치

    관리자 메뉴:

    플러그인
    → 새 플러그인 추가
    

    검색:

    WPCode
    

    설치 후 활성화합니다.


    ② Header에 AdSense 코드 추가

    메뉴:

    Code Snippets
    → Header & Footer
    

    Header 부분에 Google AdSense에서 받은 코드를 붙여 넣습니다.

    예:

    <script async
    src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxxx"
    crossorigin="anonymous"></script>
    

    저장(Save Changes).


    방법 2. Site Kit by Google 사용 (가장 쉬움)

    설치

    검색:

    Site Kit by Google
    

    설치 후 활성화


    연결

    Site Kit
    → 시작하기
    → Google 계정 로그인
    → AdSense 연결
    

    자동 광고 활성화

    AdSense 관리 화면:

    광고
    → 사이트별
    → jldnet.kr
    → 자동 광고 ON
    

    그러면 광고가 자동으로 배치됩니다.


    방법 3. Twenty Twenty-Five에서 본문 중간 광고 넣기

    블록 에디터에서:

    글 편집
    → + 버튼
    → 사용자 정의 HTML
    

    추가 후 AdSense 광고 코드를 삽입합니다.

    예:

    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
         data-ad-slot="1234567890"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    

    방법 4. 사이드바 광고

    Twenty Twenty-Five는 기본적으로 사이드바가 없으므로:

    외모
    → 편집기
    → 템플릿
    → 페이지
    

    에서 블록을 추가하여

    열(Column)
     ├─ 본문
     └─ 광고 영역
    

    형태로 구성할 수 있습니다.


    가장 수익이 좋은 광고 배치 추천

    자동 광고 + 수동 광고 병행

    제목 아래

    제목
    ────────
    광고
    ────────
    본문 시작
    

    본문 2~3문단 뒤

    1문단
    
    2문단
    
    광고
    
    3문단
    

    글 마지막

    본문 끝
    
    광고
    
    관련 글
    

    Twenty Twenty-Five + Rank Math SEO + AdSense 추천 구성

    홈페이지
    │
    ├─ 자동 광고
    ├─ 제목 아래 광고
    ├─ 본문 중간 광고
    ├─ 글 끝 광고
    └─ 모바일 앵커 광고
    

    이 구성이 현재 가장 많이 사용되는 블로그 수익화 방식입니다.