Support » Themes and Templates » can’t delete php code – line1 error

  • Resolved anarchocapitalist

    (@anarchocapitalist)


    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)
  • 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)

    Try Download the theme again and activate and then change

    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.