• I am completely unexperienced with coding and I decided to try to change something in my theme by adding some code in. It didn’t do anything so I deleted it, but when I tried to refresh the page after that my website was blank. How can I fix this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Seems that you need to reinstall the theme that you are using.

    Delete the corrupted theme.
    Download the theme again. (unzip it)
    Place the themes’ folder into the ‘wp-content/themes/’ directory.
    Activate it in your Admin panel.

    Thread Starter annabellesophia

    (@annabellesophia)

    How do I get to the page of my code when the site is blank?

    Just like Tim has explained, Re-install your theme with a fresh installation, note that if you want to modify any codes for your theme use a child theme instead of modifying your theme files directly.

    Thread Starter annabellesophia

    (@annabellesophia)

    I’m sorry, I’m really not good with these things. Where do I re-install the theme? Is it different that my website? Because my website is a blank page with nothing to click on so I’m not sure how to re-install or delete anything.

    If you have already hosted your website login to your Cpanel and try to access your website files from there, you will see something similar to this: public_html/yoursitefolder/wp-content/themes
    Open the themes folder and rename the current theme to something like: mytheme_old. Refresh your site to see whether there are changes. Once you are sure its your current theme you can upload it a fresh through Appearance/Themes in WordPress admin.

    Wish you well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Messed with code and now the website is blank’ is closed to new replies.