Broken home.php
-
I am running a WordPress site for a summer program I’m involved with. While tooling with the theme’s code, I made one of the pages explode. How do I fix it?
This is how I got into trouble:
Other people have worked on this site before me and edited some of the theme’s files, but I don’t have any of their documentation. Before I started working on it, the site worked fine. The home.php file had been edited to hardcode a home page for the website. I changed “Front Page Displays” settings under “Reading Settings” to “A static page” so that I could control the home page using the built-in pages system. When I did this, though, the page displaying blog posts started displaying the content of the old home.php file. I copied the contents of index.php to home.php, hoping to make the blog post page work. The page exploded ??This is what the blog post page looks like now: https://www.thesdsp.com/?page_id=85
This is what the home.php file has:
[Code moderated as per the Forum Rules. Please use the pastebin]
What should I do to get the page working again? Is there a working home.php file I can copy? If I’m in serious trouble, I still have the code I replaced and can go back to the system that was in place before I started working.
- The topic ‘Broken home.php’ is closed to new replies.