Help remove malware from website (Just remove a code)

Hello, i got malware on my website and rn it took a lot of time to load a website and after loading it shows ***<?:>*** on upper of the website. I found it in code but cannot find it in theme on wordpress, whats the best solution to remover this malware? site is: gabrielamendel dot sk, thanks!!

https://preview.redd.it/y0vulf6q7i5d1.png?width=2572&format=png&auto=webp&s=ef566beae4d73218dce4c12a97c0f4814ae45cc8

https://preview.redd.it/92g01g6q7i5d1.png?width=1318&format=png&auto=webp&s=fb58715821dbf24642112f60a600c73148f4465b

2 Comments
  1. I see that the codes also appear on other pages, so high chance it is inside the theme header file.

    Try looking into wp-content > themes > (your theme name) > header.php

    Hope it helps!

  2. Your site has been hacked – removing that code won’t do anything.

    To fix the issue, you need to identify how the malware got it. Malware is almost always a result of a plugin vulnerability being exploited. This happens if you don’t keep your plugins up to date or use abandoned or nulled plugins/themes. Remove or update the plugin(s), *then* clean the site (using Wordfence).

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer