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?