Close Menu
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
Facebook X (Twitter) Instagram
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
My SiteMy Site
Home»Adsense»How I added Adsense into wordpress blog without plugin
Adsense

How I added Adsense into wordpress blog without plugin

Oscar FrankBy Oscar Frank2 Mins Read
Share
Facebook Twitter LinkedIn WhatsApp Pinterest Email

It might interest you to know that you can add adsense into your wordpress blog, in various positions, just as you add in blogger, without the use of plugins.

adsense in wordpress without plugin

I prefer this method of adding google adsense into your blog to the use of plugins because i’ve heard of cases where the plugin developers interchange their ads with yours.

With my step by step guide, you would be able to add Google Adsense ads to various wordpress positions of your blog such as;


– Add Adsense below blog title header (blog menu)
– Add adsense below post title
– Add adsense before comments
– Add adsense in sidebars

How to Add Adsense below blog Menu title header

– In your wordpress admin panel, Click on Appearance > Template Editor
– Open header.php
– Now paste this code in the last line

<div align="center" style="display:block; width:950px; margin-right:0; background: #ffffff;">

PLACE YOUR ADSENSE CODE HERE

</div>

How to Add Google Adsense Ads below post title

– Click on Appearance > Template Editor
– Open single.php
– Now search for

<?php
if(has_post_thumbnail()) {

– Place your adsense code before this code.

If you could not find that code in you single.php, search for

<?php
the_content('');

– now place your Adsense code before this code.

How to Add Google Adsense Ads before comments

– Click on Appearance > Template Editor
– Open single.php
– Now search for

<?php
if(comments_open( get_the_ID() )) {
comments_template('', true);

– Place YOUR ADSENSE CODE before this code.

How to Add Google Adsense Ads on Sidebars

This is quite the easiest part, it can be done in the widget area by dragging and dropping the widget in the sidebar area.

Related Posts

WordPress Blog Hosting made easy with SeekaHost Blog Hosting Control Panel

December 4, 2020

How to Create a Website with Elementor Page Builder in WordPress

April 1, 2019

Top 3 Reasons Backing Up Your Files Offsite Is Extremely Important

February 27, 2018
View 3 Comments

3 Comments

  1. Dickson on January 24, 2013 2:03 am

    Nice, thanks for the sharing. I will try it.

    Reply
  2. MacMan on June 15, 2014 8:09 am

    Manually putting Adsense code between the comment section can be done through comments_template

    Reply
  3. Os on June 19, 2016 10:45 pm

    hello friend

    I decided to follow your guidelines. But got lost because i couldn’t find the template-editor on my admin dashboard.

    I appreciate your response.
    Thank you

    Reply
Leave A Reply Cancel Reply

Recent Posts
  • 6 Sports Apps You Must Have On Your Phone
  • Valencia Travel Guide: All You Need to Know About This Spanish Gem
  • TikTok Faces Unexpected Ban in Senegal, Sparks Global Curiosity
  • The Apple GPT & Apple’s Chatbot Mysterious Debut
  • Triller Takes on TikTok: Filing for Public Listing
Get Exclusive Tech Insights!
My Site
Facebook X (Twitter) Instagram YouTube
© 2025 Oscarmini Co. Designed by illBytes.

Type above and press Enter to search. Press Esc to cancel.