Title: can&#8217;t delete php code &#8211; line1 error
Last modified: August 19, 2016

---

# can’t delete php code – line1 error

 *  Resolved [anarchocapitalist](https://wordpress.org/support/users/anarchocapitalist/)
 * (@anarchocapitalist)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/cant-delete-php-code-line1-error/)
 * I have just installed NewsNow theme. Trying to lose the adverts from under the
   Feature Content Gallery (the slideshow of my posts).
 * Naturally my first move was to delete the <div class=”box_ads”><?php include (
   TEMPLATEPATH . “/sponsors.php”); ?></div> from the index.php file.
 * What I got was this…
 * Parse error: syntax error, unexpected ‘}’ in /home/anarcho/public_html/index.
   php on line 1
 * Tried using <!– !–> but this had the same effect.
 * is this something to do with nested divs or something?
 * my url is anarcho-capitalist.org
 * i’m running out of beer…

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

 *  [binni_77](https://wordpress.org/support/users/binni_77/)
 * (@binni_77)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/cant-delete-php-code-line1-error/#post-1183858)
 * I hav installed NewsNow theme and removed the code which u removed.It is working
   fine.From NewsNow theme, i hav copied content of plugins folder to wp-content/
   plugins and newsnow folder to wp-content/themes and activated.It worked fine(
   i mean no errors)
 *  [binni_77](https://wordpress.org/support/users/binni_77/)
 * (@binni_77)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/cant-delete-php-code-line1-error/#post-1183859)
 * Try Download the theme again and activate and then change
 *  Thread Starter [anarchocapitalist](https://wordpress.org/support/users/anarchocapitalist/)
 * (@anarchocapitalist)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/cant-delete-php-code-line1-error/#post-1183915)
 * all good.
 * basically i edited the code using dreamweaver. stuff that. i don’t know what 
   dw does to php but wp don’t like it.
 * used textedit to do exactly the same edit and it works fine. wtf.
 * thanks anywayz binni
 * css all day everyday homes.

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

The topic ‘can’t delete php code – line1 error’ is closed to new replies.

## Tags

 * [ads](https://wordpress.org/support/topic-tag/ads/)
 * [adverts](https://wordpress.org/support/topic-tag/adverts/)
 * [delete](https://wordpress.org/support/topic-tag/delete/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 3 replies
 * 2 participants
 * Last reply from: [anarchocapitalist](https://wordpress.org/support/users/anarchocapitalist/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/cant-delete-php-code-line1-error/#post-1183915)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
