Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Does Foodie World support child theme CSS? #153179
    timburkart
    Participant

    Hi Sapana,

    Unfortunately I cannot send you login credentials because this site is a local install. Here is my functions.php:

    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘foodie-world-style’;

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

    There is nothing wrong with my CSS because it works when I add it to the Customizer. I want to use the style.css of the child theme.

    Please tell me what else you need.

    Thank you.

Viewing 1 post (of 1 total)