WordPress.org

Ready to get started?Download WordPress

Forums

Diginews
Stylesheet fix for child themes? (2 posts)

  1. rlaltrel
    Member
    Posted 1 year ago #

    For your consideration..

    Consider change line 413 of functions.php from:

    wp_enqueue_style('style', get_template_directory_uri() . '/style.css', array(), null, 'all');

    to:

    wp_enqueue_style('style', get_stylesheet_directory_uri() . '/style.css', array(), null, 'all');

    This will allow the css file to be read from the child theme's css file instead of the parent.

    Thanks!

    Rob

  2. WPThemes.co.nz
    Member
    Posted 1 year ago #

    thank you for your suggestion @rlaltrel.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.