• Resolved briz_dad

    (@briz_dad)


    Hello Support Community,

    I am attempting to create a Child Theme for the parent theme, ForeverForest.

    Here is the piece to creating the Child Theme that is confusing me:
    maintain all of the Parent Theme dependencies

    I believe ForeverForest contains multiple style sheets/files.

    Can you tell me the correct functions code to put into the child theme functions file to import the parent CSS properly?

    (I understood @import. I do not understand enqueuing.)

    The site “breaks” each time I active the child theme I’ve created – the CSS isn’t loading.

    Here is a link to the site I am working on: speechtherapymarin.com

    TIA,
    Greg

Viewing 2 replies - 1 through 2 (of 2 total)
  • Child theme creation is simple. Just follow the below article to create child theme.
    Codex
    Child Theme Development
    Try it and if not work, feel free to ask.
    Thanks

    Thread Starter briz_dad

    (@briz_dad)

    OK – I got an answer from the theme developer.

    For what ever reason, I wasn’t understanding that I needed to substitute the actual theme name in place of the word “theme” on the samples. I think it wasn’t clear because the Child Theme name isn’t relevant in the function.

    The working function in my case is:

    add_action( 'wp_enqueue_scripts', 'foreverwood_child_enqueue_styles' );
    function foreverwood_child_enqueue_styles() {
        wp_enqueue_style( 'foreverwood-parent-style', get_template_directory_uri() . '/style.css' );
    }

    Parent Theme: foreverwood

    (In case the above helps other non-programmers understand this new method.)

    Thanks for the support,
    Greg

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Theme for ForeverWood Theme – multiple CSS files’ is closed to new replies.