• Hi, I have created child themes in the past but this time I’m trying to use the functions.php file in place of the way I used to do it with @import. Anyway, here’s the code I developed, but I have no idea what I’m doing, I tried to understand the Codex and I don’t think I did it right because it’s not working:

    <?php
    
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }
    
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/rtl.css' );
    
    }

    the theme is twentythirteen and I’m trying to create a new div so I can separate my activities from the rest of the list. The website is transition411.com

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to create a child theme and not sure if my functions.php file is correct’ is closed to new replies.