• I made a child theme using my locally installed wordpress. Now when I tried to migrate to a live site,it is terribly broken and I get an error:

    call to undefined function amadeus_banner()

    None of the elements in the parent theme show up either. When I run the site locally, it works perfectly.
    Is there anything I must do differently when migrating to a live site from local?? because all I did was add :

    Theme Name: MyTheme
    Template: Amadeus

    into the stylesheet of the child theme. In functions.php of the child theme I put:

    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

    Any help would be greatly appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    I don’t know what guide/tutorial you are using to create a child theme.

    Here is WP codex guide: Child Theme

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Is the parent theme installed on the live site? Child themes don’t work unless the parent is there.

    Thread Starter brandonf

    (@brandonf)

    Thanks for the reply,
    Yes, the parent Amadeus is installed. I installed my entire wordpress folder. Every single item in my wordpress folder is on my server.Including every other theme i’ve made so far.

    Thread Starter brandonf

    (@brandonf)

    Tara, that link tells me to do exactly what I already did. That does not help at all. It works locally, so there must be something else I didnt do.

    what theme exactly are you using?
    this one https://en-ca.www.ads-software.com/themes/amadeus/ or a different one?

    do you have a complete copy of the parent theme in your live site?

    is that allegedly missing function part of the parent theme?

    make sure that Template: points to the path of the parent theme.

    Thread Starter brandonf

    (@brandonf)

    Yes That is the theme I’m using. Yes a complete copy of parent theme is in live site.
    Yes, the missing fuction is a part of the parent theme.

    Okay. I think pointing to the Path of the parent theme is what I’m missing. What would be the best way to get the path?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please (1) paste the comments at the top of the style.css of your child theme and (2) list the directories in wp-content/themes

    the path to the theme would be with a small ‘a’ – therefore:

    Template: amadeus

    do you have by any chance a theme folder also with the capital ‘A’ in the name?

    otherwise, I would have thought the error message would be ‘parent theme missing’ or similar…

    Thread Starter brandonf

    (@brandonf)

    On my original Amadeus css file it says

    Theme Name:Amadeus (with a capital A)

    There is also a comment in same css file that says:

    Text Domain:amadeus

    Does that matter?
    Also if I accidentally capitalized the A in amadeus, would that make the child theme only work locally? Because it works fine when I run it locally, it’s only on the live site that I have problems.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    if locally means “windows”, case doesn’t matter. On Linux, it does. The case must match the directory in wp-content/themes

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Child Theme not recognizing parent functions’ is closed to new replies.