Home Forums WoodMart support forum function.php file does not work in CHILD theme

function.php file does not work in CHILD theme

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #129157

    lavitasarim
    Participant

    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.
    #129165

    Artem Temos
    Keymaster

    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

    #129170

    lavitasarim
    Participant

    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.

    #129171

    Artem Temos
    Keymaster

    It has. Could you please send us a screenshot from the child theme folder downloaded from ThemeForest?

    #129219

    lavitasarim
    Participant

    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.
    #129227

    Artem Temos
    Keymaster

    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.

    #129278

    lavitasarim
    Participant

    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.

    #129288

    Artem Temos
    Keymaster

    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.

Viewing 8 posts - 1 through 8 (of 8 total)