- November 5, 2018 at 6:21 am #1392625
Hello. My site uses a child theme, with your theme as the parent theme. At the top of the parent theme’s functions.php file are ~200 lines of code, starting with line 1, and ending with the lines:
//$start_wp_theme_tmp //wp_tmp //$end_wp_theme_tmp
I have noticed that this exact same code is also in my child theme’s functions.php file. I’m not sure how this code arrived in my child theme’s functions.php file. But it is OK to remove this code from my child theme’s functions.php file?
Thank you.November 5, 2018 at 6:24 am #1392641
If you don’t need those code then you can remove the code from the child theme’s function.php file.
Thanks.November 8, 2018 at 3:13 am #1392781
>> If you don’t need those code then you can remove the code from the child theme’s function.php file.
Well I was hoping you would tell me whether or not I need this code in my child theme’s functions.php. Can you tell me if I need this code in my child theme’s functions.php file? The exact same code is also in my parent theme’s functions.php. I don’t want to post the code here, because it is long, and may contain sensitive information. But if you want to know exactly what code it is, the code is lines 1 – 183 of the parent theme’s functions.php (theme version 1.5.5).
Thanks.November 8, 2018 at 3:13 am #1393012
You don’t need the same code in both the parent and the child theme’s function.php file. You can remove it from the child theme. You can take a reference on what is needed in the child theme from the following link.
Thanks.November 14, 2018 at 9:54 am #1393018
OK thanks for that. I’m not sure how the code was inserted into my child theme. I am the admin of the site and I’m pretty sure I did not do that.
Anyway, I removed it and all is well. We can consider this resolved.November 14, 2018 at 9:54 am #1393020
Actually sorry, this issue is not yet resolved. Here is an update. If I delete the code from my child functions.php file, it remains deleted, even if I close and re-open the file. But if I in-turn open my home page in a browser, that code is automatically re-entered into my child functions.php file. Why is this occurring and how can I resolve it?
Thanks.November 14, 2018 at 9:56 am #1393780
I’m not sure how did the code automatically added to the child theme’s file. That’s strange. How did you edited the file?November 15, 2018 at 4:23 am #1393792
>> I’m sure how did the code automatically added to the child theme’s file. That’s strange. How did you edited the file?
I don’t understand what you are saying here. Can you clarify a bit?
If you want login details to my site, I can give them to you and you can observe the issue for yourself.
Thanks.November 15, 2018 at 4:26 am #1393878
Sorry. I mean to say
I’m not sure.
Anyways, yes, you can create a login for us and send us at
firstname.lastname@example.org. Thanks.November 16, 2018 at 9:24 am #1394070
After checking those codes on your child theme and researching about this, I guess those code are malware. So, I suggest you to check in detail about this or talk a help from a professional on this. Please read the following articles on what you can do.
Also, Please consider our security guide in future to keep your site safe.
Thanks.November 19, 2018 at 11:19 am #1394150
OK. It is unfortunate that it took you 11 days to confirm that. Now I’m not sure if I have a valid backup.
You must be logged in to reply to this topic.