• I made quite a few changes to the GamePress Theme: http://wordpress.org/extend/themes/gamepress

    I just learned about child themes and wanted to move my changes to there. I followed these directions here to create it http://codex.wordpress.org/Child_Themes

    But, I’m getting the bellow errors when I tried to activate it

    Warning: require_once(/home/eazymone/public_html/wp-content/themes/gamepress_child/meta-box/meta-box.php) [function.require-once]: failed to open stream: No such file or directory in /home/eazymone/public_html/wp-content/themes/gamepress/functions.php on line 679
    
    Fatal error: require_once() [function.require]: Failed opening required '/home/eazymone/public_html/wp-content/themes/gamepress_child/meta-box/meta-box.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eazymone/public_html/wp-content/themes/gamepress/functions.php on line 679
Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you have access to the file the error is referring to?

    Thread Starter caribsa

    (@caribsa)

    Yes I do. But I don’t think I understand the child theme. I thought the only thing I needed to add was a style.css and everything else would be inherited from the parent theme. But it seems with the activation of the child theme, it just created a new style.

    You need to move any php files you edited in your original into the child theme folder, eg footer.php, index.php or whatever.
    These versions will override the Gamepress ones.

    I use child themes based on gamepress on several sites, it’s very flexible and being a child theme, I can upgrade the underlying (gamepress) theme without losing my changes. Result!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme Problem’ is closed to new replies.