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
- Featured Image meta box not showing up
- filemtime(): stat failed warning within a child theme
- How can I override a require() used in functions.php of parent theme to my child theme
- Best way to develop a new theme on a live site, with new content? [closed]
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Can I Set Up Session in WordPress Custom Page
- Custom theme: How to call archive-post.php for viewing blog posts
- How can I hard code my sidebar?
- Thesis -style Navigation
- How can I wrap all blog posts image with
- How to allow users to create their own website within my domain? [closed]
- Is it necessary to network enable both the parent and child theme for multisite installations?
- Avada Child Theme Development
- Issue when posting updates/changes to wordress
- Different text on different sites in a multisite setup
- Editing my theme to try to place the default header at the top of the page breaks the rest of the page content
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Create theme for mobile phones and tablets only?
- Never actually adding the action? Or do I have to call the action?
- How to hide custom sidebar on mobile
- What is the difference between Twenty eleven & roots framework?
- How to change listing type permlink?
- Adding popup support to the theme
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- Edit Product Archive design for Woo theme
- How do I remove header/page-title image in farvis theme? [closed]
- How to connect two child themes on different sub domains to the same base theme
- How to link post image to post link?
- How to hide blog by id wordpress multisite listing
- WordPress Theme Developments – Start from another theme
- Slider should be display in home template [closed]
- Extending arrays in parent theme without completely overriding the files
- How to convert that page to a wordpress template? [closed]
- php file child theme directory not overriding parent theme php file [duplicate]
- WordPress theme Modifications not showing up on live server
- How to Create a Multi Purpose Theme?
- add_action works outside condition but not inside it
- Should I create a child theme for a parent custom theme? [closed]
- What is the point of using the front-page.php template? [closed]