Website hacked after putting some code in Function.php file
-
Hello,
My website is Sportstadka.com
I was trying to add additional sidebar to my site and copied code this code into my functions.php from one site appointzilla.com
here is the code I copied –if ( function_exists(‘register_sidebar’) ) {
register_sidebar(array(
‘name’ => ‘Custom Sidebar’,
‘id’ => ‘custom-sidebar’,
‘description’ => ‘Sidebar below Header image’,
‘before_widget’ => ‘<li id=”%1$s”>’,
‘after_widget’ => ”,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’,
));
}
But after copying code my site is gone and getting this error on my homepage .. Parse error: syntax error, unexpected ‘2’ (T_LNUMBER) in /home/content/n3pnexwpnas02_data02/60/2904760/html/wp-content/themes/sportsmag/functions.php on line 366
Kindly help ..
- The topic ‘Website hacked after putting some code in Function.php file’ is closed to new replies.