• Resolved dstevelius

    (@dstevelius)


    Hi!
    First of all, great theme!

    Secondly, have a problem. In my current parent theme, I uploaded a custom php file in the “inc” folder. I also added a “img” folder in the “inc” folder. All worked fine.

    Then, with the child theme configurator, I created a child theme. Activated it and all fine.
    Then I created an “inc” folder to put the custom php file and the “img” folder. Then I added the code in the child functions.php to include the custom php file in the “inc” file.

    I save and when I run website, crashes. Any thoughts?

    Regards and thank you,

    DStevelius

Viewing 2 replies - 1 through 2 (of 2 total)
  • What does the error message say (if any) when it crashes when adding into the child theme?

    Hi DStevelius,

    Thank you, I’m glad you like the theme ??

    Please note that uploading any files into a parent theme (actual Receptar theme) folder will not do anything. This actually should never be done as you will loose all your changes once you update the theme to newer version. Always use a child theme for such cases.

    I’m not sure what is a child theme configurator though. Is that a plugin? Anyway, your issue looks like you have issue with your custom PHP code in your child theme. Please understand that I can’t provide support for custom theme modifications. I can only provide tips to resolve as I haven’t coded your modifications:

    • Try to make sure you have declared your child theme’s functions.php file with the PHP opening tag of <?php at the beginning of the file.
    • Enable debug mode on your website to determine the cause of the issue and take appropriate action.
    • You can download a sample child theme for free from my Github repository at https://github.com/webmandesign/child-theme. Just read the instructions in the repository for how to set your child theme correctly.

    If you are not familiar with PHP coding, please consider hiring a help.
    Or, even better, I’m not sure what you are trying to achieve with your custom PHP code, but maybe there is a plugin for that already? → Try to search WordPress plugins repository for suitable one.

    Please note that I provide official support at https://support.webmandesign.eu/

    Regards,

    Oliver

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘child theme with custom php file’ is closed to new replies.