Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1339879

    I downloaded the child theme from the above site, but I can’t update the parent theme css with the child theme “style.css”.

    I pasted the following code into “function.php” and it didn’t work.
    I think it’s because the parent theme doesn’t use style.css, what should I do?

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    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’));
    }

    #1340280

    Hey Hiracchi,
    Thank you for your patience, but I believe that you are misunderstanding how to use the child theme with Enfold, you do not need to use the above function, please remove it.
    Once your child theme is installed and activated please follow Step 4: Import parent theme options in our documentation.
    After this step save the theme settings (big blue button), reload the frontend, if it doesn’t look like your parent theme did then go to the theme settings again (not the back button) and sometimes the big blue button will be blue again, so click it again to save and check the frontend again and this should be correct, then you can make your adjustment for the child theme to override the parent theme.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.