Title: Need to remove custom php code from sidebar???
Last modified: August 20, 2016

---

# Need to remove custom php code from sidebar???

 *  [Gekko74](https://wordpress.org/support/users/gekko74/)
 * (@gekko74)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/)
 * Hi,
 * I have ads on the side of my pages in the sidebar. Trying to remove them can’t
   find where. Someone else coded them into the php, but I don’t know php.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299434)
 * Try looking in sidebar.php.
 *  [dmhbeast](https://wordpress.org/support/users/dmhbeast/)
 * (@dmhbeast)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299437)
 * post your sidebar.php contents
 *  Thread Starter [Gekko74](https://wordpress.org/support/users/gekko74/)
 * (@gekko74)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299492)
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  [Summer Haven](https://wordpress.org/support/users/summer-haven/)
 * (@summer-haven)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299500)
 * I have a similar problem can’t remove a tutorial like header from my new feature
   page…it says change in the php..its hardcoded?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299507)
 * **[@summer](https://wordpress.org/support/users/summer/) Haven**: It is considered
   impolite to interrupt another poster’s thread. Please post a new topic.
 *  Thread Starter [Gekko74](https://wordpress.org/support/users/gekko74/)
 * (@gekko74)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299517)
 * These are some of the files created, I understand include files but can’t find
   where the “include” command was put. I think the custom ads are ref. css files.
   But the css files are not listed in the Edit feature on the right.
 * front_page.php (front_page.php)
    iframe-featured.php (iframe-featured.php) iframe-
   raw.php (iframe-raw.php) iframe-training.php (iframe-training.php) iframe-updates.
   php (iframe-updates.php) include-sidebar-bio.php (include-sidebar-bio.php) include-
   sidebar-training.php (include-sidebar-training.php) include-sidebar.php (include-
   sidebar.php) links.php (links.php) page-bio.php (page-bio.php) page-custom.php(
   page-custom.php) page-videos.php (page-videos.php)
 *  Thread Starter [Gekko74](https://wordpress.org/support/users/gekko74/)
 * (@gekko74)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299519)
 * Better still, can I replace the sidebar.php file with a default one? I don’t 
   mind resetting all the side bars.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299522)
 * WordPress doesn’t ‘include’ files. Perhaps you need to review [Theme_Development](http://codex.wordpress.org/Theme_Development)
   to get a better understanding of the templating system.
 *  [dmhbeast](https://wordpress.org/support/users/dmhbeast/)
 * (@dmhbeast)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299525)
 * [@gekko74](https://wordpress.org/support/users/gekko74/)
 * We still need the sidebar.php script to be able to help.. it looks like you may
   have tried to post it but it was blocked.. if thats the case please make sure
   you put the code in backticks ‘ ‘ . then it wont get blocked.
 * [@summer](https://wordpress.org/support/users/summer/) Haven
 * I would head Esmis advice. Ive been on these forms enough to see him solve probably
   1000000000 problems. Also your problem is completely different. Gekko is asking
   for help removing ads from sidebar. not a header.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Need to remove custom php code from sidebar???’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [dmhbeast](https://wordpress.org/support/users/dmhbeast/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/need-to-remove-custom-php-code-from-sidebar/#post-2299525)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
