[child theme] Can't manage to make it work
-
Hi everyone
I’ve been trying a lot to make this child theme work but I can’t succeed.
That’s what I did:
in my ftp wp-content>themes I created the child theme folderI then used Mac’s texteditor to create two files: a style.css file and a function.php
In the style.css file I just pasted this code:
/* Theme Name: ??Resonar Child Theme URI: ???https://www.riccardocavaliere.com/resonar-child/ Description: ?Resonar Child Theme Author: ??????Riccardo Cavaliere Author URI: ??https://riccardocavaliere.com Template: ????resonar Version: ?????1.0.0 License: ?????GNU General Public License v2 or later License URI: ?https://www.gnu.org/licenses/gpl-2.0.html Tags: ????????light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: ?resonar-child */
in the function.php file I wrote:
<?php add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' ); function enqueue_parent_theme_style() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); }
I uploaded both the files into my child theme folder but the child theme is not working properly, as you can see if you check my website:
https://www.riccardocavaliere.com
What did I do wrong?
When I did the same operation but using the @import function (and without the function.php) everything worked smoothly.
Thansk in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[child theme] Can't manage to make it work’ is closed to new replies.