Site broken while changing functions.php
-
Hello,
I have a two-themes wordpress website. First theme is for one of the pages (blog page), the second one is for all the other pages, including home page.
I was trying to change site title selflink in the blog theme (wanted it to link to itself, not to the home page), I was looking for a clue in a WP Codex.
I pasted this in functions.php of the blog theme ( https://codex.www.ads-software.com/Changing_The_Site_URL )
update_option('siteurl','https://example.com'); update_option('home','https://example.com');
changing examples to my home and blog urls. And the site disappeared, I have 404 error trying to login to wp admin and totally messed up site on every page, both themes. The blog theme looks worse, but the other one is also broken. The admin page doesn’t load at all, when I try to enter it I see a broken home page and error 404.
I immediately deleted these two lines from functions.php in file editor, but it didn’t get better, deleting these lines didn’t cause any improvement.
Seems like adding these lines caused modifications in other wp files, but I have no idea where to look for a solution, just don’t know what to do now.
Colud you please help me?
- The topic ‘Site broken while changing functions.php’ is closed to new replies.