Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #153131
    timburkart
    Participant

    I created a child theme for a number of reasons. So far PHP file changes work but my changes to style.css do not. It seems the only way to make CSS changes is in the theme customizer. I really prefer to make them in a separate style.css for ease of organization.

    I am enqueueing the css files in functions.php of the child theme.

    I am developing on a local machine right now.

    Please advise.

    Thank you.

    Tim

    #153138
    sapana
    Participant

    @timburkart:For the child theme also you can use the Style.CSS of the child theme.May be you are doing something wrong.You can send me your admin credentials so that I can look into the issues.I will contact you shortly by mail.

    Kind Regards,
    Sapana

    #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.

    #153195
    sapana
    Participant

    @timburkart: Try to create the child theme using this plugin Generate Child Theme and then try adding the CSS in Style.CSS.
    Let me know if it works or not!

    Kind Regards,
    Sapana

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Does Foodie World support child theme CSS?’ is closed to new replies.