• Resolved RiccardoCav

    (@riccardocav)


    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 folder

    I 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)
  • What exactly is wrong? When I visited your site (1:15am, Mountain time), everything seemed to look fine and I can see that both the child theme and parent theme’s stylesheets are loading correctly.

    Thread Starter RiccardoCav

    (@riccardocav)

    Ah ok! So I actually think I solved the problem…I think it was that:

    I named the file in the child theme folder “function.php” whereas the correct name is “functions.php” (functionS, plural).
    Now I changed the name and it actually seems to work properly!

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.