• Resolved pappe

    (@pappe)


    Hi,

    I am using your great theme (newest version) on this site: Link. The site isn′t opened yet but soon.

    I have generated a child theme which works great for the moment. When I copy the functions.php to the child theme the theme will generate an error as follows:

    Warning: require_once(includes/mh-functions.php): failed to open stream: No such file or directory in /kunden/363571_94036/webseiten/jdav/wp-content/themes/mh-purity-lite-child/functions.php on line 116
    
    Fatal error: require_once(): Failed opening required 'includes/mh-functions.php' (include_path='.:/usr/local/lib/php') in /kunden/363571_94036/webseiten/jdav/wp-content/themes/mh-purity-lite-child/functions.php on line 116

    How to solve this issue? I want to add some functions to the theme …

    Thanks!

    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Martin,

    thanks for using MH Purity lite and we’re happy that you like the theme. ??

    You shouldn’t copy the functions.php of the parent theme to the child theme. Please keep in mind that a child theme actually is an “extension” of the parent theme. So the file functions.php of the parent theme will be loaded anyway.

    If you want to code new functions, you can copy an empty file functions.php to your child theme and then add your own code.

    Here you can read more about child themes: https://codex.www.ads-software.com/Child_Themes

    Thread Starter pappe

    (@pappe)

    Got it! Now it works! Thanks!

    You’re welcome – if you are happy with the theme, we would love if you could leave a rating.

    Have a nice weekend.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child theme / functions.php’ is closed to new replies.