WordPress.org

Ready to get started?Download WordPress

Forums

Child Theme Problem (4 posts)

  1. caribsa
    Member
    Posted 1 year 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
    Forum Moderator
    Posted 1 year ago #

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

  3. caribsa
    Member
    Posted 1 year 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
    Member
    Posted 10 months 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

Tags

No tags yet.