Tagged: child theme, error
- This topic has 8 replies, 2 voices, and was last updated 7 years ago by wensolutions.
-
AuthorPosts
-
September 8, 2017 at 9:12 am #121825JuneParticipant
I have been using WEN Business Pro without any issue. I am now trying to create a Child theme but keep on seeing this error:
Broken ThemesThe following themes are installed but incomplete.
Name Description
WEN Business Pro Child The parent theme is missing. Please install the “WEN Business Pro” parent theme.I have tried all the suggested online solutions and even installed a different theme and created a child theme successfully for that theme.
Below the header of the style.css of the parent theme followed by the style.css header of the Child theme I am trying to create:
Theme Name: WEN Business Pro
Theme URI: https://catchthemes.com/themes/wen-business-pro/
Author: WEN Themes
Author URI: https://wenthemes.com/
Description: WEN Themes proudly presents WEN Business Pro : a spacious , generous , Corporate theme that offers convenience to anyone setting up the theme. Simplicity and roomy sections, all well-knit to deliver an exceptionally personal, professional or private showcase. Powering the build, is the in-house responsive framework that offers features that suffice a lot of needs and that is convenient to operate upon as well. This time its a one-layout header, clean menu, slider, focused content, pretty effects, portfolio showcasing, testimonials, neat footer all following fully responsive patterns. The code / setup is easy to customize and extend by various hooks offered in the build – those that help any technical person add further extensions on the base of an awesome build. This is a theme that works toward simplicity in setup, ease in use.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wen-business
Tags: light, white, blue, one-column, two-columns, left-sidebar, right-sidebar, fixed-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, full-width-template, post-formats, sticky-post, translation-ready, responsive-layout, theme-options, threaded-commentsThis theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you’ve learned with others.This theme is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*//*
Theme Name: WEN Business Pro Child
Theme URI: https://catchthemes.com/themes/wen-business-pro-child/
Template: WEN Business Pro
Description: WEN Business Pro Child Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wen-business-child
Tags: light, white, blue, one-column, two-columns, left-sidebar, right-sidebar, fixed-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, full-width-template, post-formats, sticky-post, translation-ready, responsive-layout, theme-options, threaded-commentsThis theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you’ve learned with others.This theme is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/September 8, 2017 at 11:06 am #121836wensolutionsParticipantHello June,
We’d suggest you to try out WP Child Theme Generator to create a child theme of WEN Business Pro. We hope this shouldn’t be an issue.
Let us know if you need any further assistance.
Thanks
September 11, 2017 at 12:21 pm #121981JuneParticipantHi WEN solutions,
I would have preferred creating a child theme according to WordPress Codex as it contains detailed information on how to edit the relevant files’ code.
However, I have installed the WP Child Theme Generator and will try it out. Please send me instructions as to which files I should edit in order to customize code for the Child Theme.
Thanks,
JuneSeptember 11, 2017 at 12:38 pm #121982JuneParticipantHi WEN Solutions,
I do not want to use a Child theme plugin.
As per WordPress instructions in: https://codex.wordpress.org/Child_Themes, I successfully created a Child theme by creating a style.css file for the new WEN Business Pro Child directory. However, the enqueue functions.php file does not seem to be working, as it is not pulling the functions from the parent theme. Below is the functions.php code that I created as per the wordpress codex instructions.
<?php
function my_theme_enqueue_styles() {$parent_style = ‘wen-business-style’; // This is ‘wen-business-style’ for the WEN Business Pro Theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
?>Please advise why the above code is not working successfully.
Thanks,
JuneSeptember 11, 2017 at 11:32 pm #121993wensolutionsParticipantHello @june,
While we have inspected the code you have provided for the child theme, the code seems to be working correctly on our side.
However, the issue seems to be with the use of quotes in the code snippet. We have fixed the issue in our test unit.
Please try replacing the code snipped with the one below :
<?php function wen_business_pro_child_theme_enqueue_styles() { $parent_style = 'wen-business-style'; // This is 'wen-business-style' for the WEN Business Pro Theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'wen_business_pro_child_theme_enqueue_styles' );
This should work for the child theme’s functions.php file to load the parent functions and styles correctly.
If the issue is not resolved, please explain the “missing functions” that you are referring to further so that we can check the issue and provide some precise fix.
It would also help us visualize the issue further if you could provide us your Website URL explaining the issues.
Hope this Helps,
Best Regards !!
September 12, 2017 at 4:10 am #122014JuneParticipantHi WEN solutions,
I have tried amending the code as suggested but I am still not seeing the full customization options when trying to use the Child theme, compared to the Parent theme.
To illustrate:
Below the customizations options when the parent theme is activated:
Below the customization options when the child theme is activated:
I’d appreciate a solution for this problem.
Thanks,
JuneSeptember 12, 2017 at 7:06 am #122030wensolutionsParticipantHello june,
While we have created and tested the child theme for WEN Business Pro, the child theme seems to be working fine with all the customizer settings from the parent theme.
To help you with the issue further, we have created the working child theme zip package in the link here :
https://we.tl/xzAvZNEz06You can download and use the child theme to resolve the issue. Please install the child theme and check if the issue is resolved.
Hope this Helps,
Best Regards !!
September 12, 2017 at 8:03 am #122037JuneParticipantHi WEN Solutions,
That seemed to do the trick, thanks for the assistance!
Kind Regards,
JuneSeptember 12, 2017 at 12:30 pm #122047wensolutionsParticipantGlad that it worked!!
Let us know if you need any further assistance.
Good luck with your site.
-
AuthorPosts
- The topic ‘Wen Business Pro Child theme error’ is closed to new replies.