• Hi,

    I was adding some code to edit the “add to cart” text on single product, into the functions.php file given to me from WooCommerce snippets.

    I updated file – all was fine.

    I then added a similar piece of code to edit “add to cart” text from product archive view – clikced update file and chrome crashed and closed.

    I cannot load up my site or the admin login page…it simply reverts to a white/blank page. I have tried clearing cache etc, using a different browser and computer.

    Any idea how to resolve this problem.

    Website URL is: https://www.waggies.com.au

    Thanks in advance.
    Ashley

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not familiar with your particular environment.. but you should never edit a themes functions.php file directly.

    Instead, use a child theme. They are super-easy to create.. and allow you to make modifications to your site (theme) without losing them during updates.

    To restore your site:
    1. Download a fresh copy of the theme which has the functions.php file you were editing.
    2. Use either your hosts cPanel or an FTP client program to gain access to your site file directories.
    3. Navigate to the “wp-content/themes” directory.

    Once there, you should see a folder matching your current theme name.

    Now, open that folder, and locate the “functions.php” file.
    MAKE A BACKUP OF THAT FILE.

    Next, extract the theme .zip file you downloaded from step 1 above.

    Lastly, upload a fresh copy of the themes “functions.php” file to your server.. overwriting the one already there (you made a backup right?).

    This should allow you back into your website.

    Thread Starter ashinx2

    (@ashinx2)

    Hey Josh,

    I will give this a go.

    Thank you
    Ash

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Website/Admin URL not loading after functions.php edit?’ is closed to new replies.