Support » Networking WordPress » Wrong parent styles loading after migration

  • Resolved michaelware1205


    This issue is with a subfolder site on a multisite install with a 8 sites, a parent theme and 7 child themes. The first 6 subsites were easy to migrate from dev to production (WP Migrate DB). But this time, the new subsite,, will not load the parent theme style.css. Instead, it tries to load the twentytwentytwo style.css. I’ve deleted that on my server, but it still looks for that theme as the parent.

    Since all of the child themes designate and load the parent theme in the same way,

    Theme Name:   Matapeake Elementary Child Theme
    Description:  QACPS child theme for MES
    Author:       PP
    Author URI:   
    Template:     queen-anne-main
    Version:      1.0.0
    Text Domain:  mes-child


    function mes_enqueue_styles() {
        $parenthandle = 'parent-style'; 
        $theme = wp_get_theme();
        wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', 
            array(),  // if the parent theme code has a dependency, copy it to here
        wp_enqueue_style( 'child-style', get_stylesheet_uri(),
            array( $parenthandle ),
            filemtime( get_stylesheet_directory() . '/style.css' )
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    add_action( 'wp_enqueue_scripts', 'mes_enqueue_styles' );

    I think the issue might be with the allowedthemes data in the sitemeta table, as suggested in this post.


    I’ve tried loading the parent and child themes manually. That loads the styles correctly, but WordPress still thinks the parent is twentytwentytwo.
    Losing my mind trying to figure this one out.
    Any feedback would be greatly appreciated.

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.