• I started making my website last night and I went to put a finishing touch on it today. (I copy pasted a code into function.php (like the website instructed me to) and now I can’t log into anything or load my page!)

    I’m not really a computer whiz (I know nothing about all these funky codes) but im really hoping an expert can help me! 🙂

    Thankyou

Viewing 1 replies (of 1 total)
  • Hi,

    It is not recommended edit a themes functions.php file directly. You should create a Child theme for any modification so your website (theme) wont lose any customizations during updates.

    Following are the steps 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.
    take 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.

    Thanks,

Viewing 1 replies (of 1 total)

The topic ‘pasted a function code and now cant load page or wp-admin’ is closed to new replies.