SupportCategory: Learnplus - WPChild Theme
renattto asked 48 years ago

How could I create a Child Theme for LearnPlus?
I’m want an Child Theme  in order to implement some customizations. I’ve created one as described below. However, it does not perform the same way as the parent theme, even when there is no codes on the child’s style.css (there’s some glitches when activating the child theme. it works perfectly when using the learnplus theme though.)
I’ve just created an ‘learnplus-child’ folder with two files inside: style.css and function.php
 
style.css

/*
Theme Name: LearnPlus - Child
Author: TrendingTemplates
Description: Greate theme for Education, University Learning websites with tons of sections and custom sections
Version: 1.1.3
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learnplus
Template: learnplus
*/

 
functions.php

<?php
function theme_enqueue_styles() {

$parent_style = 'learnplus';

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 )
);
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
?>

Is there anything missing or wrong with the code?

Any help appreciated.

2 Answers
Trending Templates Support answered 5 months ago

Hello,
We included the child theme in the package. Please go to the package > learnplus-child.zip and install it.
Thanks.

renattto answered 5 months ago

Thanks! I’ve missed that file. 

Copyright © 2014 - 2016 Designed by Trendingtemplates