How to restore wordpress after hacking
First thing to do after you set up a wordpress website is to backup!!!
- Install the plugin of backup,such as UpdraftPlus
- Install the plugin of any high rating security plugin from wordpress, if possible, purchase the pro one, sometimes the price is valuble.
- If the website is badly hacked, then the best and fast way is to set a clean and new wordpress and imported the data.
- 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.
- Download the same version of wordpress,copy the files under “wordpress” and paste into wamp\www\wp
- Go to localhost\wp\wp-admin, then install the brand new one.
- Remember to set up the database name and Prefix the same as the previous one.
- Finish the installation of the new wordpress website.
- 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.
- Refresh the page of website, it would show that you have already install the wordpress so just login.
- 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.
- Scan the new website by some high rating security plugins and backup.
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
Then install the auto update plugin and attempt login plugin.