The issue appears to be that you’re not declaring your theme as a child theme correctly. To be a child theme the theme must declare its Template:
in the comment block at the top of style.css, not Child Theme Template
.
Not declaring your theme as a child theme correctly means that WordPress isn’t falling back to the parent theme’s templates. So if you don’t have an index.php file in your child theme, nothing will load.
So your child theme style.css should look like this:
/*
Theme Name: X Child Theme
Description:
Author: Y
Template: astra
*/
Also note the comment block is indicated by /*
and */
. They’re not in your question, so I don’t know if you’re actually using them, but if you aren’t, you need to. They’re required.
Related Posts:
- Theme Customization API and child themes
- How can you change default color scheme in a Twenty Fifteen child theme?
- How can I override file featured-image-first.php of Avada theme [closed]
- get_theme_mod is returning a number rather than my image file
- WP Customizer Fatal Error trying to load class in child theme
- Child Theme disable customizer defaults
- Can I add customizer sections in the Twenty Seventeen theme?
- Child Theme Customizer not working
- How to stop customizer settings inheritance from parent to child theme?
- How to modify single.php in a child theme?
- How to Add Customizer Setting in Child Theme
- Git vs Child Theme
- Give priority to child theme stylesheet
- Get Parent Theme Author Name
- Do I need to update the child theme too after updating the parent?
- Theme customizer: How do you grab the value later?
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- How do I check for child theme files first using include, before going to parent theme?
- Use admin options from parent theme in child theme
- How to “remove” file from parent theme
- How to override the Parent theme Function into child themes functions.php
- Style.css in child theme is loaded before Bootstrap
- Overiding functions.php with child-theme
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Enqueue stylesheets if parent theme has more than one .css file
- Using the child theme functions.php to change the customizer.php on parent theme
- Child theme implementation issues
- Add post dates from child theme and change font size on homepage post
- Which action is triggered when a theme was modified?
- Child theme undefined variable error
- wp_add_inline_script not adding when script_loader_tag filtered
- the file placed in the child theme is not included
- How to NOT call Font Awesome or font icons in WordPress
- @font-face broken in child theme
- WordPress Child Theme PHP Code Change Issues
- Create child theme after costumizing the original
- How to enqueue scripts in order of Head section
- WordPress Child theme’s css not loading
- Scratch theme needs to be a child theme, but for which parent? [closed]
- How to use custom stylesheet only for a template in child theme
- Will the use of a child theme create problems with commercial parent theme’s options?
- Creating a child theme from Twenty Seventeen
- Which header is served
- How can I make this Advanced Custom Field Save & Store local json work?
- Changes to child theme are not visible on my site [closed]
- How to add anchor tag at the top of posts, past the header and nav bar?
- changing parent theme into child theme
- Is a Child Theme required?
- Moving from parent theme to child theme without losing configurations
- How to override parent theme template files?
- can the footer be included on a child theme
- Using filter to override “get_parent_theme_file_path” in child-theme
- Link featured image to post
- What are the best practices for maintaining and deploying several parent themes?
- How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?
- Avada Child Theme Development
- is it possible to add new template in theme twenty seventeen?
- Child theme with flatsome theme crashes website
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- Proper way to show admin bar in HTML5 Blank theme
- I want to edit it on my laptop as a child theme and transfer the files to my server. I don’t know how
- Adding function from parent theme to child theme
- Change Twenty Twelve’s comment form in a child theme
- Correct way to customise a child theme
- Need advice on theme customizer and child themes
- Stylesheet overriding in Child theme
- Two stylesheets acting on one element
- Is the front-page.php template reserved in wordpress twenty twelve theme?
- Referencing parent theme image from child theme
- Modify Twentyeleven child theme CSS – How to change body font size?
- Can I place “parent theme” inside a child theme folder?
- How to customize BuddyBoss Theme page header
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Change templates in a child theme
- issue on creating child theme
- Child theme stylesheet not reflecting the changes
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- Best way to edit/change comment-template.php without changing the core
- How does a Genesis child theme understand that the Genesis theme is the parent theme?
- Where can I edit/see the HTML of this WordPress free theme?
- Change default color scheme in twentyfifteen child theme?
- Loading my main.js file from my child theme
- menu, header and footer is not shown in the appearance after creating the child theme
- The parent theme is missing. Please install the “bp-default” parent theme
- how to fix loading scripts in child theme?
- Calling Category name without the link
- child theme showing all this extra information for following lines
- Is it possible to slow down site with a bulky child theme?
- Child Theme Issue – activated but does not show in preview
- How to configure folders with ‘Child Theme’?
- What are some best practices for switching the child theme for a production site?
- Edit php files in subdirs in a child theme
- Child theme only loads on home page
- wordpress every page returning 500 error
- How to add modified php in child theme?
- Vague Errors from VIP Scanner Plugin
- How to create my own style.css file in an wordpress child-theme
- How to handle a large child theme
- theme.json should be in the child theme folder when using xxxx.json style located in the styles folder?
- Is it possible to load a child theme from a remote server?