sarahluo

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: How to Fully Include Parent Styles in Child Theme #43519
    sarahluo
    Participant

    That got it. Thanks so much!

    in reply to: How to Fully Include Parent Styles in Child Theme #43452
    sarahluo
    Participant

    Hi there, have you been able to identify what I may be doing wrong? I noticed that the parabola style.css has a line importing the fontfaces.css file. Since my child style is not registering the fonts, could it be that I need to enqueue this stylesheet as well?

    in reply to: How to Fully Include Parent Styles in Child Theme #43394
    sarahluo
    Participant

    Thanks for replying. I currently have this:

    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘parabola-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.

    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’ );
    ?>

Viewing 3 posts - 1 through 3 (of 3 total)