For creating a childtheme you have to follow these steps:
- Ubicarse en el directorio wp-content/themes
- Create a directory for the theme. It is recommended to name it as the parent topic followed by – and the suffix child. Example: yakindu-child
- Create the file style.css as follow:
/*
Theme Name: YAKINDU Theme
Theme URL: https://www.yakindu.ec
Description: Plantilla creada para YAKINDU CIA. LTDA.
Theme Author: Mario Morocho
Author URL: http://www.mariomorocho.com
Template: yakindu
Version: 1.0.0
Text Domain: yakindu-child
*/
- Create the file functions.php
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}