• Hi,

    So, finally figured out how to create a child theme, created style sheet and functions file, but I can’t figure out what to put in my functions file to “maintain all of the Parent Theme dependencies” since my parent theme has 3 style sheets. I am using edin theme.

    Anyone out there to help with this?

    TIA!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter xoptopinope

    (@xoptopinope)

    I entered this into my functions file for no other reason than I found it somewhere else:

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles_viewpoint’ );
    function theme_enqueue_styles_viewpoint() {
    wp_enqueue_style(
    ‘parent-style’,
    get_template_directory_uri() . ‘/style.css’
    );

    wp_enqueue_style(
    ‘anthemize’,
    dirname(__FILE__) . ‘/../../../../resources/styles/anthemize.css’
    );

    }

    It almost worked, but not quite.

    Thread Starter xoptopinope

    (@xoptopinope)

    The css files are style.css, rtl.css, and editor-style.css. I just copied rtl and editor-style into my child theme folder and put:
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }
    ?>
    into my function file for now. If anyone knows how to enqueue the other files or if I’m even supposed to, let me know!

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to enqueue multiple style sheets in child theme’ is closed to new replies.