[Resolved] Child theme not working after site migration

Home Forums Support [Resolved] Child theme not working after site migration

Home Forums Support Child theme not working after site migration

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #413222
    Ashton

    Hello I just migrated my site from localhost and the child theme won’t work it says it needs the parent theme installed, but I’ve reinstalled the parent theme half-a-dozen times and it still won’t work

    #413227
    Ashton

    Here is what my functions.php file looks like:

    */

    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’; // This is ‘generate-style’ for the GeneratePress theme.

    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 ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

    /*

    #413251
    Leo
    Staff
    Customer Support
    #413836
    Ashton

    It didn’t, I’m not exactly sure what should be in that document after removing code that looks like the one mentioned in that article.

    #413922
    Leo
    Staff
    Customer Support
    #414227
    Ashton

    Yes, I will copy the custom coding into this thank you!

    #414351
    Leo
    Staff
    Customer Support

    No problem!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.