Skip to main content
19 votes
Accepted

My child theme doesn't work Error: "The parent theme is missing. Please install your parent theme"

There are three things to check: Is your parent theme complete and what is the exact spelling of the parent theme's name in its style.css. Uppercase and lowercase are important. Is the child theme ...
cjbj's user avatar
  • 14.6k
11 votes

My child theme doesn't work Error: "The parent theme is missing. Please install your parent theme"

The Template Name in the Child Theme Should be Parent theme's Folder name., If you give the Parent theme Name or something else It won't work. Is your theme "pricerr" provided by 'sitemile' ? then ...
Discover's user avatar
  • 211
8 votes

override parent theme configuration in child functions.php

You can't necessarily replace entire arbitrary files with a child theme. WordPress will automatically look in the child theme for replacements for the templates in the template hierarchy, as well as ...
Jacob Peattie's user avatar
6 votes
Accepted

Why is the Child Theme Stylesheet Not Loading?

There's no need for more code in your functions.php file to enqueue the parent themes css from your child theme. The problem is that by adding that code, you're enqueueing the parent theme's CSS a ...
Nathan Johnson's user avatar
5 votes

Find a Parent Theme's stylesheet $handle when it registers a stylesheet

To clarify this, for anyone using Divi theme (but generally any WP theme), a simple inspection using Dev tools on the "head" for the stylesheet links usually gives a clue about the handle, as Den ...
Boris Chevreau's user avatar
5 votes
Accepted

Get parent theme version

In the WP_Theme class, the get method gives you a sanitized theme header. You cannot use it to extract a property. Actually you don't need to, as you can access it directly like this: // get the ...
cjbj's user avatar
  • 14.6k
4 votes
Accepted

How to Add Customizer Setting in Child Theme

OK, check out the theme developer handbook. $wp_customize->add_control( 'reblog_number_control', array( 'label' => __( 'Number of Reblogs', 'tesseract-child' ), 'section' => '...
prosti's user avatar
  • 4,283
4 votes

Get Parent Theme Author Name

I was searching for getting the name of the parent theme and stumbled over this post. I think the best solution is not mentioned here: wp_get_theme()->parent()->get( 'Author' ); or what I ...
Web-Entwickler's user avatar
3 votes

append to existing parent theme function

No, it doesn't appear to be possible. At least not directly. You can replace functions in parent themes if they are wrapped in: if ( ! function_exists( 'get_nav_markup' ) ) { } Because child themes ...
Jacob Peattie's user avatar
3 votes

Do I need to update the child theme too after updating the parent?

As you mentioned, a child theme is designed exactly for the purpose of not losing your changes upon updating the parent theme. Updating the child theme is not always mandatory, however there might be ...
Johansson's user avatar
  • 15.3k
3 votes

How to load parent theme style.css?

The process is simple, you can just create a functions.php file in your child theme directory and call the parent theme style: Put the code! function child_assets(){ wp_enqueue_style( "parent-...
Shajidur Rahman Bappi's user avatar
3 votes

Override parent theme translation on child theme

A 2019 update for Wordpress 5.0.1. The files shall NOT have the parent or child slug in them. For example, providing spanish Mexican translation should have files child-theme-name/languages/es_MX.po ...
Cesar's user avatar
  • 31
3 votes

Why is the Child Theme Stylesheet Not Loading?

You don't need to load the Style Sheet of your Child Theme unless you want to label it something other than style.css. By default, WordPress loads style.css (in the theme root directory) of the ...
Michael Ecklund's user avatar
3 votes

How to load parent theme template parts in child theme

From the WordPress documentation on child themes (Referencing or Including Other Files): To reference the parent theme directory, you would use get_template_directory() instead. Therefore, in your ...
g0h's user avatar
  • 131
3 votes

Removing parent theme action on pluggable function not working

The parent theme's functions.php runs after the child theme's, so in order to remove an action defined by the parent theme the remove_action call must be delayed using a hook after the parent theme ...
Bence Szalai's user avatar
3 votes

Website parent child relationship

They aren't "files" or "folders" per se, but you could achieve that URL structure. Custom code to create custom post types and taxonomies would be the ideal way, as that could then ...
WebElaine's user avatar
  • 9,430
2 votes

My child theme doesn't work Error: "The parent theme is missing. Please install your parent theme"

This question has long been answered, but since I stumbled here and this did not solve my problem, I thought I would add another solution. In my case, the template was set correctly in both the ...
Michael W.'s user avatar
2 votes
Accepted

Enqueuing latest version of jQuery into a child theme returns a blank screen

It does look like some compatability issues are present. There is an answer to a very similar situation on stack exchange here: https://stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-...
Chris Stage's user avatar
2 votes
Accepted

Problem with Child-Theme using of foundation-framework

So, after a chat discussion with the OP, I found out that the theme being used was HireBee. After some investigation it appears that HireBee only uses a very minimal version of the Foundation ...
Mat's user avatar
  • 1,637
2 votes
Accepted

Proper way of using functions in action hook?

Yes, you can. But you have to be careful, since some special cases may occur. Some of them are: 1. Function may be class method and not a global function: class SomeClass { ... function ...
Krzysiek Dróżdż's user avatar
2 votes

Proper way of using functions in action hook?

You can use functions defined in the parent theme, but you can only use them after the parent theme is loaded. The parent theme is loaded after your child theme. This means that if you want to use a ...
Jacob Peattie's user avatar
2 votes
Accepted

Overrite parent functions using child functions

You can't just redeclare the function in the child theme or call add_action a second time. It doesn't replace it, it adds a second hook. As a result, you haven't overriden it, you've duplicated the ...
Tom J Nowell's user avatar
  • 59.6k
2 votes
Accepted

How would I go about replacing this function in my child theme located in inc/template-tags.php

You can't replace the function, but you can substitute it: Copy the function to your child theme's functions file. Rename the function. Modify it as needed. Find the template file that references it, ...
Jacob Peattie's user avatar
2 votes

Get parent theme version

Seeing your edit based on the suggested method from cjbj, make sure you are using the actual directory name for the parent theme when calling wp_get_theme(). Note - this is not the slug or written ...
jdm2112's user avatar
  • 3,676
1 vote
Accepted

Creating a child theme: How do I find the template name of the parent directory?

As stated in the Theme handbook (https://developer.wordpress.org/themes/advanced-topics/child-themes/) you need to use the parent theme dir name in the 'Template' header. In your case the template ...
curious_curious's user avatar
1 vote
Accepted

Is it necessary to network enable both the parent and child theme for multisite installations?

A little late to the party, came across this question looking for the same answer myself - to answer your first question, I've done a brief test locally and it seems that the parent theme can be ...
efreeman's user avatar
  • 138
1 vote

append to existing parent theme function

if get_header_markup() is used in a template page you can easily overwrite the template of the parent theme with a file named in the same way ( suppose the template file is theme/template1.php create ...
Andrea Somovigo's user avatar
1 vote
Accepted

Using the child theme functions.php to change the customizer.php on parent theme

Put this code in function.php. create custom section in customizer for logo : <?php add_action('customize_register', 'theme_footer_customizer'); function theme_footer_customizer($wp_customize){ ...
Jignesh Patel's user avatar
1 vote
Accepted

overwrite code snippet from parent to child theme

The functions in your child theme will be loaded before the functions in the parent theme. This means that if your parent and child themes both have functions called my_function() which do a similar ...
dwcouch's user avatar
  • 51
1 vote
Accepted

Creating child theme out of Coeur

make sure template name is correct. Template – the name of the parent theme directory. The parent theme in your example is the Coeur theme, so the Template will be coeur also make change theme ...
Shamsur Rahman's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible