Editing index.php messes up site (2 posts)

  1. AJTrenkle
    Posted 10 years ago #

    So I edited my index.php file manually to insert some Amazon ad's in the navigation bar at the right. Somehow, this messed everything up. I can't get to my archives and I can't publish any new pages.

    How can I fix this? In the future how can I manually insert ads without messing up the site?

  2. moshu
    Posted 10 years ago #

    Rule # One: always keep an unaltered copy of your template files (the famous "BACKUP before messing around" warning)!

    What WP version that you have the sidebar in the index?
    Which theme?
    Obviously you did something more than just adding an ad because even the encoding is screwed up in your posts.
    My only advice: upload a fresh, untouched copy of the theme.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.