主题

How to Create and Customize a Child Theme - 创建hello elementor子主题

https://elementor.com/blog/wordpress-child-theme/

主要是两个文件style.css和function.php和一张图片screenshoot.png

style.css:

/*

Theme Name: wpdmtheme

Theme URI: https://www.wpdemososo.cn

Description: wpdemososo主题

Author: wpdemososo.cn

Author URI: https://www.wpdemososo.cn

Template: hello-elementor

Version: 1.0.1

Text Domain: wpdmtheme

License: not free.

License URI: http://woo.demososo.com

*/

 

function.php:

<?php

/* Function to enqueue stylesheet from parent theme */

function child_enqueue__parent_scripts() {

    wp_enqueue_style( 'parent', get_template_directory_uri().'/style.css' );

}
add_action( 'wp_enqueue_scripts', 'child_enqueue__parent_scripts' );