Wordpress multisite child theme showing as broken theme - wordpress

I am using wordpress with multisite enabled. Now I took bootstrap _tk theme as parent and made a child theme named as _tk child theme. So basically I have defined the theme name in child theme like this
/*
Theme Name: _tk Child Theme
Theme URI: http://www.example.com/
Description: _tk Child Theme
Author: Example
Author URI: http://www.example.com/
Template: _tk
Version: 1.0.0
*/
#import url("../_tk-master/style.css");
But when I went to the wordpress dashboard theme section. I can't see the theme. Then I went to dashboard network section( as I have enabled multisite) there I can see under the section Broken Theme the _tk Child Theme is placed. I have tried both network enabled and disabled for the parent theme but I can't see the child theme working. So can someone kindly tell me what's the issue here? Any help and suggestions will be really appreciable. Thanks

Related

Divi + Woocommerce Child Theme

I have experience with Wordpress & Woocommerce but this is the first time I have used Divi + Woocommerce and it's been a while since I worked with WP so I may be a little rusty. I am a full stack developer so any technical answers are fine.
I have created a child theme without any issues but when I try to copy the Woocommerce folder into the child theme to make changes to the .php file (e.g. /child-theme/woocommerce/templates/content-product.php) as I have done before (non-divi) it doesn't override.
I have added the child theme comment to the child theme styles.css as follows
/*
Theme Name: Theme Child
Version: 1.0
Description: Child theme for Main theme.
Author: Me
Template: theme
*/
I needed to remove the subdirectory "templates" from the child theme woocommerce folder.
From here you can download the free Divi Child Theme: https://divireadythemes.com/download-a-free-blank-divi-child-theme/
/*
Theme Name: Divi Child Theme
Theme URI: https://YourURL.com/
Description: Divi Child Theme
Author: Areeb Saeed Raja
Author URI: https://YourURL.com/
Template: Divi
Version: Updated for Divi 3+
*/

How to create a child theme in WordPress?

I am trying to create a child theme so I can customize the parent theme but it is not working what-so-ever. I did everything I can think of:
created a folder for my child theme under wp-content/themes
created a style.css stylesheet and saved it in the child theme folder:
/*
Theme Name: Twenty Thirteen Child Theme
Description: Twenty Thirteen Child Theme
Author: Ashley
Template: twentythirteen
Version: 1.0.0
*/
and I went to Appearance > Themes in WordPress but no child theme showed up. I have tried it multiple times and don't know what to do.
Pretty good tutorial here:
https://www.elegantthemes.com/blog/resources/wordpress-child-theme-tutorial. I've taken a snippet from it for the style.css file, and substituted bits with your info:
/*
Theme Name: Twenty Thirteen Child Theme
Description: Twenty Thirteen Child Theme
Author: Ashley
Template: twentythirteen
Version: 1.0.0
*/
#import url("../twentythirteen/style.css");
/* =Theme customization starts here
------------------------------------------------------- */
Be sure to link properly to the TwentyThirteen theme's style.css file (via #import); make sure you're using the right path. Then you can proceed as normal by visiting "Appearance > Themes".
here is a simple article
create child theme directory
create styles.css
create functions.php

About WordPress child theme

I have created wordpress child theme from parent theme "twentythirteen". My child theme name is "twentythirteen-child".It has following content.
/*
Theme Name: twentythirteen-child
Theme URI: http://www.example.com
Description: A Twenty Thirteen child theme
Author: WPBeginner
Author URI: http://www.example.com
Template: twentythirteen
Version: 1.0.0
*/
#import url("../twentythirteen/style.css");
Unfortunately my child theme replaces the parent theme and newly created theme is applying when i activate child theme and there is no parent theme style is applied on webpage.
How can i solve this problem?
Couple things to try:
Double check to make sure your template path in the header you posted actually goes to the twenty-thirteen theme. That could be why the base styles aren't appearing.
Your child theme needs it's own style.css - you can't import that. Read more on the WordPress Child Theme Codex Page.
Make sure you didn't copy over the entire directory into the child folder. That's a common beginner mistake.
Your child theme is supposed to override the parent theme. It supersedes any parent theme files you put into it. For example, if you put a different page.html in the root of your child theme, it would replace the page.html from the twenty-thirteen parent theme.

MailPress Child Themes

I found the solution, so I'll post this in case anyone else is looking for this info.
I was looking into using a child theme with MailPress (the Wordpress newsletter plugin).
I created the following folder:
public/mysite/wp-content/plugins/mailpress/mp-content/themes/twentyten-child
But when I went to the Admin->Mails->Themes page to activate this child theme, it showed the error:
The parent theme is missing. Please install the "twentyten-child"
parent theme.
The answer was to insert the following comments at the top of the child theme's style.css file:
/*
Theme Name: twentyten Child Theme
Template: twentyten
Version: 0.1
*/

How to activate the child theme in Wordpress?

I create a new style.css and use it in child theme. And I create a new folder in wp-content and name it as themename-child and upload the style.css that I created. Now, I go to wp dashboard -> Appearance -> Themes and I look the child theme that I create. And I found this error:
Broken Themes
The following themes are installed but incomplete. Themes must have a stylesheet and a template.
Name Description
Accesspress Lite The parent theme is missing. Please install the "AccesspressLite" parent theme.
Is there anything that I need to upload? Please help me. I'm new in WordPress. Thank you!
No, the problem here is that you must specify the parent template in commented area of your child style.css
Example from Wordpress Codex
/*
Theme Name: Twenty Fourteen Child
Theme URI: http://example.com/twenty-fourteen-child/
Description: Twenty Fourteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfourteen
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fourteen-child
*/
#import url("../twentyfourteen/style.css");
Line with
Template: twentyfourteen
is what your need. Your parent theme must be in corresponding folder, in this example, themes/twentyfourteen.
Also, in your parent template you must load style.css via get_stylesheet_uri() for child theme to work correctly.
Seems clear to me that you need to install the Parent Theme, which is required for child theme installation...
The parent theme is missing. Please install the "AccesspressLite" parent theme.
The whole purpose of the child theme is that it feeds it's adjustments into the parent theme, so you don't have to adjust parent theme settings.

Resources