• Resolved jonwainwright

    (@jonwainwright)


    Hi guys im trying to create a child theme for the infoway theme but it keeps coming up with the following error

    Warning: require_once(/home/content/24/9351424/html/websites/Motortrade/wp-content/themes/infoway-child/functions/theme-options.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/24/9351424/html/websites/Motortrade/wp-content/themes/infoway-child/functions.php on line 8

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/24/9351424/html/websites/Motortrade/wp-content/themes/infoway-child/functions/theme-options.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /home/content/24/9351424/html/websites/Motortrade/wp-content/themes/infoway-child/functions.php on line 8″

    any ideas guys im sure what its looking for is there and ive tried moving the 2 php files to the child theme folder that didnt work????????

Viewing 14 replies - 1 through 14 (of 14 total)
  • Did you move the functions.php file to the child theme? If so, that’s the problem — please review https://codex.www.ads-software.com/Child_Themes#Using_functions.php

    Initially, the only file you need in a child theme is style.css.

    Thread Starter jonwainwright

    (@jonwainwright)

    so do i need to put a functions.php file in the child theme or not im confused (sorry)

    i read it and i think i need a new file in the child directory but what do i have to include in the file??

    No, not unless you are trying to change something in the functions file – are you?

    Thread Starter jonwainwright

    (@jonwainwright)

    no i just made a stylesheet in my theme like i useualy do and when i tried to preview the theme that was the error that i got?

    Yep, so then just take out that copy of the functions file – you don’t need it in there and it’s causing the errors.

    Thread Starter jonwainwright

    (@jonwainwright)

    i havent got one in there?

    Thread Starter jonwainwright

    (@jonwainwright)

    i think ink theme have made it this way so you have to pay for the theme

    Hmm, that’s weird then. And since there is a free version on the repository on this site, it should be okay. But some themes won’t work with child themes – so that MIGHT be the case here. Let me download and look at the theme for a minute…

    In the meantime, what do you have in the child theme stylesheet and is the file structure correct? i.e. the child theme is NOT inside the parent theme folder – it’s next to it.

    Thread Starter jonwainwright

    (@jonwainwright)

    no its in the following folder /wp-content/themes/infoway-child

    in the folder i have the following.
    footer.php
    header.php
    style.css

    style.css has the follwoing
    /*
    Theme Name: Infoway Child
    Theme URI: http: //motortrader-insurance.com/
    Description: My Infoway child theme.
    Author: Jon Wainwright
    Author URI: http: //onebear.co.uk/
    Template: infoway
    Version: 0.1
    */

    @import url(“../infoway/style.css”);

    That all looks perfect – so I’m thinking maybe this theme is not child friendly ?? or there is a problem with the parent theme functions.php file. Do you have the current version of the theme and of WP? Can you try replacing the parent theme functions file with a new copy of it – just download the theme to your computer and use FTP to replace it.

    Thread Starter jonwainwright

    (@jonwainwright)

    ive got the most recent updates of both wordpress and the theme i have re installed the theme a couple of times but it seems that it wants the functions folder to be in the child folder so i might try copying the whole think in to the child folder do you think that would work?

    Yeah, I think the way the theme files are structured precludes a child theme from working right. It’s not ideal, but yes, you can generally change the name on a theme folder – which will keep it from getting overwritten when updated but it also won’t get updates that might be important… So that’s really up to you ?? .

    Thread Starter jonwainwright

    (@jonwainwright)

    i aint got time today i think that will be a bank holiday monday job lol!

    Thanks for all your help i really appreciate it

    Thread Starter jonwainwright

    (@jonwainwright)

    i managed to sort this out now thank you mate for your help

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘infoway’ is closed to new replies.