how to restore wordpress

How to restore wordpress after hacking

First thing to do after you set up a wordpress website is to backup!!!

  1. Install the plugin of backup,such as UpdraftPlus
  2. Install the plugin of any high rating security plugin from wordpress, if possible, purchase the pro one, sometimes the price is valuble.
  3. If the website is badly hacked, then the best and fast way is to set a clean and new wordpress and imported the data.
  4. Export data from original phpMyAdmin,the fast and simple way to generate SQL.Remember the database name and Charset,which later would be used to import to the new one.
  5. Download the same version of wordpress,copy the files under “wordpress” and paste into wamp\www\wp
  6. Go to localhost\wp\wp-admin, then install the brand new one.
  7. Remember to set up the database name and Prefix the same as the previous one.
  8. Finish the installation of the new wordpress website.
  9. Import the SQL of previous database.If error, do not click the second option,rembember to new the database first and the database name and charset should be the same as the previous one.
  10. Refresh the page of website, it would show that you have already install the wordpress so just login.
  11. Then go the post and pages, check if there is any strange code,then delete them The best way to view them is in class edit instead of Elementor.
  12. Scan the new website by some high rating security plugins and backup.
  13. Learn how to use Elementor to same the template of your website design: Go the the arrow close to “update”, save the page as template. Go to your elementor Tools choose Regenerate CSS Sync Library

  14. Then install the auto update plugin and attempt login plugin.