function.php file does not work in CHILD theme
-
Hello there.
I updated the theme.
I threw the “function.php” file from the main theme into the CHILD theme. And then the pictures won’t open.
What is the reason of this? I haven’t made any changes to “function.php”.
Can you help me? Thanks.
Attachments:
You must be
logged in to view attached files.
Hi,
You don’t need to copy this file from the parent theme. Child theme should have its own functions.php and you can get it from the downloaded package from ThemeForest.
Regards
Hello there.
But ThemeForest doesn’t have the function.php file for the CHILD theme!
Until now, I was making changes to the function.php file that I copied from the main theme.
Is there a change?
Thanks.
It has. Could you please send us a screenshot from the child theme folder downloaded from ThemeForest?
Hello there.
When I downloaded ALL files from ThemeForest, I was able to get the CHILD theme.
However, to change the sidebar H tags, I took the corresponding place from the theme-setup.php file and pasted it into the function.php file.
But it didn’t work. Site not opened.
I’m enclosing the new version of function.php. What’s wrong?
Thanks.
Attachments:
You must be
logged in to view attached files.
We are not able to check it in such a way. If the site doesn’t work, then there is some PHP error appears. Try to check your PHP error logs.
Hello there.
Previously, we changed H tags as in the link below.
https://xtemos.com/forums/topic/changing-the-default-h-value-for-the-title-section/page/2/#post-35038
It’s not working right now. What is the problem?
Could you help?
Thanks.
As we said, we can’t know why the code is not working now. You must check the PHP error logs to understand the problem.