Figured it out. Sites have three options in the wp_options (or wp_n_options where n is the blog id) table. You can see them by running:
SELECT *
FROM wp_options
WHERE option_name IN ('current_theme', 'stylesheet', 'template')
To fix blogs after replacing a normal theme with a child theme of the same name, run an update on the wp_options table for that blog, setting the template option to the parent theme path:
UPDATE wp_options
SET option_value="parent-theme-path"
WHERE option_name="template";
Related Posts:
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Add colors to existing color palette without replacing it
- Child Theme not loading parent CSS
- add_image_size is scaling, even though crop is set to true
- How do I get a parent theme modification from a child theme?
- CSS in child theme not overriding the parent theme [closed]
- Optimal solution to develop a wordpress theme?
- Should I update my _s theme?
- Create a theme by combining a parent and a child theme
- WordPress Multisite: Have the same header and footer of main-blog on all sub-blogs
- Override Constants in Child theme
- how can I remove the sidebar from my wp homepage [closed]
- Does any theme support child theme?
- Am I supposed to create a child theme for every theme I use?
- How to remove a file included in parent theme with locate_template() via child theme?
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- Override template file i subfolders
- Theme Development for WordPress Multisite Installation
- Include Parent functions.php in Child Theme functions.php
- Why is it needed to enqueue parent stylesheet in child theme?
- Child Theme’s style.css not loading in mobile browser
- Acivate all themes multisite wide automatically
- Renaming a theme so it aids SEO and the theme used is hidden
- Overrite parent functions using child functions
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Starting point for custom Themes [closed]
- Simple child theme modification but links are broken
- Why still output /wp-content/themes/twentynineteen?
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- LESS not working in WordPress [closed]
- Remove h1 from 2015 theme
- HTTP Error when uploading images over specific dimensions
- How to modify theme content in Thematic?
- Why front-page.php doesn’t show content of file instead shows loop
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How can I access variables from theme in child theme? [closed]
- How to display home page last modified date in anywhere of wordpress theme?
- What is an alternative to not using child theme to customize a WordPress theme?
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- Child theme menu not appearing in Twenty Seventeen
- How can I fix my theme header for my CSS stylesheet?
- How to make menus, footer, sidebars multi language
- How to test another theme in a live WordPress website instead of live preview?
- Update modified Shopify third-party theme [closed]
- how can I re-utilize and class on a child theme
- Providing updates to your WordPress theme
- How do child themes work?
- How to migrate the menu from the site on my own theme in WordPress?
- How can I demonstrate themes well?
- adding navigation to genesis themes
- Standard Way To Do Custom Work Within A Page?
- Custom link color or stylesheets
- Image Size wrong during upload
- Confusion about theme’s parent and child functions.php file
- Sizing screenshot.png without losing aspect ratio
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- theme path in javascript file
- get_template_part vs action hooks in themes
- how can I add an icon/image for a child theme?
- The the_post_thumbnail without srcset?
- The proper way to include/require PHP files in WordPress
- after_setup_theme always runs
- Do I actually need to link my theme’s style.css in the theme files
- Using classes instead of global functions in functions.php
- WordPress API Menu/Submenu Order
- How to insert a logo in the header?
- How to set permalink structure via functions.php
- How to move page template files like page-{slug}.php to a sub-directory?
- WooCommerce shop page to use my custom template [closed]
- CSS classes for theme
- Add custom classes to anchor in wp_nav_menu
- How to remove search bar from a wordpress theme? [closed]
- Should `get_template_directory_uri()` be escaped?
- Get url of thumbnail from the media uploader
- How To Add New Option Types To Option Tree?
- WP 3.4 – what action/hook is called when theme customisation is saved?
- Child Theme vs Duplicate Theme Renamed
- What WP folder can I use to write files to?
- Are the WordPress Core CSS styles really all nessesary?
- Add a dropdown to theme customizer
- Should I use set_transient or update_option?
- Why doesn’t default WordPress page view use force_balance_tags?
- Page template in two level deep folder
- Hide a div that is part of all pages on one specific page
- Theme Customizer : how to create multiple-level panel
- Why I can’t add a CSS style in this WordPress theme?
- Theme file for all pages that are a child of a specific page
- Allow Shortcode in Theme Customizer
- Where to post/upload the new theme for WordPress theme repository
- How to add Color Picker in Theme Options for the following?
- Setting multiple default background images?
- Template for individual post designs
- How to make a theme with more than one CSS file?
- Is it good to rename theme folder downloaded from WordPress.org?