• Hello,

    I have been trying and trying and trying to create a child theme for my wordpress site which can be found at https://www.sampinktenniscoaching.co.uk I need to update the theme I currently use but by doing this I will lose all customisation and changes to the site as it currently stands! I want to update my theme but keep all the changes I have made.

    I have tried various child theme instructions and followed to the letter but just not working?? I keep getting this message:

    Warning: require_once(/customers/b/e/0/sampinktenniscoaching.co.uk/httpd.www/wp-content/themes/food-recipes-child/meta-box/meta-box.php): failed to open stream: No such file or directory in /customers/b/e/0/sampinktenniscoaching.co.uk/httpd.www/wp-content/themes/food-recipes/functions.php on line 154 Fatal error: require_once(): Failed opening required ‘/customers/b/e/0/sampinktenniscoaching.co.uk/httpd.www/wp-content/themes/food-recipes-child/meta-box/meta-box.php’ (include_path=’.:/usr/share/php’) in /customers/b/e/0/sampinktenniscoaching.co.uk/httpd.www/wp-content/themes/food-recipes/functions.php on line 154

    I have no idea what this means and have tried everything to fix, I have taken away the @import function within the style.css and created a functions.php with copy supplied, I have fiddled and fiddled and fiddled and just cant get the child theme to work?? Really struggling and must be something I have missed? Just can’t see what? Please help someone!! Going insane!!

    Thanks in advance,

Viewing 10 replies - 1 through 10 (of 10 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which theme are you using?

    Thread Starter IDCreativ

    (@idcreativ)

    Thread Starter IDCreativ

    (@idcreativ)

    Thanks for the response Andrew, any ideas?

    Some themes do not work with Child Themes, so you should first check with the developer of that theme as these forums have no way to support commercial themes – we don’t have access to them.

    Thread Starter IDCreativ

    (@idcreativ)

    The developer has stated that this theme (food recipes) should work with a child theme. Still neededing to understand how to do this and make work!! Have to had a chance to look at the error message I keep getting stated above in first support message of this thread?

    Thread Starter IDCreativ

    (@idcreativ)

    Sorry for bad english! what happens when trying to type to quickly.

    The URL in that error message does not seem to be a valid URL:

    No such file or directory in /customers/b/e/0/sampinktenniscoaching.co.uk/httpd.www/wp-content/themes/food-recipes/functions.php

    What is the file structure of your site and themes folder?

    Thread Starter IDCreativ

    (@idcreativ)

    I have placed the child theme folder into the themes folder within ‘wp-content’ as instructed.

    I would send you a screenshot of directory contents but am unable to send images!

    Thread Starter IDCreativ

    (@idcreativ)

    This is the text I had in the style.css file:

    /*
    Theme Name:Food Recipes Child Theme
    Theme URI:https://www.sampinktenniscoaching.co.uk/wp-content/themes/food-recipes
    Description:food recipes Child Theme
    Author:Ian Dance
    Author URI:https://www.iandance.co.uk
    Template:food-recipes
    Version:1.0
    */

    Thread Starter IDCreativ

    (@idcreativ)

    And this to the function.php file

    <?php
    // add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array(‘parent-style’)
    );
    }

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘child theme needed on sampinktenniscoaching.co.uk’ is closed to new replies.