Child Theme Problem (4 posts)

  1. caribsa
    Posted 3 years ago #

    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
  2. Andrew
    Moderator of Puppies
    Posted 3 years ago #

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

  3. caribsa
    Posted 3 years ago #

    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.

  4. q292u
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.