Title: How to put my adsense code in this php code ?
Last modified: August 19, 2016

---

# How to put my adsense code in this php code ?

 *  [mariarenata](https://wordpress.org/support/users/mariarenata/)
 * (@mariarenata)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-put-my-adsense-code-in-this-php-code/)
 * Hi there,
 * I just upload new theme, and want to put my adsense pub-ID there, here’s the 
   code they show me :
    <!– Ad start –> <div class=”sidebar_ads”><img src=”<?php
   bloginfo(‘stylesheet_directory’); ?>/images/180×150.gif” width=”180″ height=”
   150″ alt=”AD” /></div> <!– Ad end –>
 * I want to place it in sidebar, since at first its only on .jpg mode, and i want
   to make it on by placing my code there so the link will work.
 * They told me to change it by myself, but i don’t know anything about .php. So
   i will be very grateful if someone could help me with this.
 * Thank you.

The topic ‘How to put my adsense code in this php code ?’ is closed to new replies.

## Tags

 * [adsense code](https://wordpress.org/support/topic-tag/adsense-code/)
 * [how-to](https://wordpress.org/support/topic-tag/how-to/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mariarenata](https://wordpress.org/support/users/mariarenata/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-put-my-adsense-code-in-this-php-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
