• Hi There!

    I’m very new to website designing, or editing and I wanted to create an e-commerce store. The store was created and everything looked great except for the fact that I wasn’t able to enable comments on any of my pages, posts or products,

    I searched how on google and it came up with this code:

    <?php comments_template(); ?>

    I made the mistake of going into my editor, and added that little code into my theme php.
    I haven’t backed it or anything, I have a copy of the original code though. My website completely crashed, I can’t even access the editor to remove that bit of code.

    How do I fix this?
    HELP

Viewing 1 replies (of 1 total)
  • Hi,

    You will need to use either FTP or a file manager in your web hosting control panel (e.g. the File Manager in cPanel). Using one of those, navigate to wp-content/themes/YOURTHEMENAME/THEFILEYOUCHANGED.php. Edit that file and replace the code with the correct code, then save your changes. This should fix your issue.

    Also, make sure you are using a Child Theme before making any other changes to your theme.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Used editor, broke my website!!’ is closed to new replies.