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

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:
Text Domain: learnplus
Template: learnplus


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.

renattto replied 3 years ago

Is there any support for this theme at all?
When i’d purchased it, they say it has…

2 Answers
Trending Templates Support Staff answered 3 years ago

We included the child theme in the package. Please go to the package > and install it.

renattto answered 3 years ago

Thanks! I’ve missed that file. 

Author - comments - 1