I installed a an antivirus plugin, it scanned the template and came up with some detections but didnt automatically clean it. I dont know php, what should i do now if it needs to be edited?
If you do not know enough php to be able to identify what does and does not belong you really are not going to be able to do much.
Do you have a backup of all your files? All your post and other info is in the database so you can replace your site files very easy. If you have a backup ( and you damn well should) just delete all the files from the server and upload your clean ones.
Time elapsed 10 minutes and now your site is clean.
If you do not have a clean backup then you need to do the following.
1. get the database info from your config.php file. easiest way to do this is via the cpanel file manager since you really do not want to download any of the files to your computer. Copy and past the info to a txt file.
2. Get the name of the theme and any plugins you are using.
3. Go to the word press site and download a fresh copy of wordpress and a copy of all your plugins and theme.
4. unzip everything and then up load the wordpress files, then your theme and plugin files.
5. Take the database info from your text file and add it to your config.php file in the correct places. upload to your server.
Your site is now clean and running. Elapsed time probably about an hour to an hour and a half.