[resolved] can't delete php code - line1 error (4 posts)

  1. anarchocapitalist
    Posted 7 years ago #

    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...

  2. binni_77
    Posted 7 years ago #

    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)

  3. binni_77
    Posted 7 years ago #

    Try Download the theme again and activate and then change

  4. anarchocapitalist
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic