skip to Main Content
Our free WordPress themes are downloaded over 3 MILLION times. Get them now!

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author

  • josierm

    Hello, I’m using the Sparkling theme and I want to make a child theme so I can change some styles etc. I also want to add the tagline to the header. However, I’ve followed the instructions for making the functions.php file from the wordpress codex and it doesn’t work. This is what I have:

    * Enqueues child theme stylesheet, loading first the parent theme stylesheet.
    function themify_custom_enqueue_child_theme_styles() {
    wp_enqueue_style( ‘parent-theme-css’, get_template_directory_uri() . ‘/style.css’ );
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );

    I think I need to enqueue more styles because Sparkling has more than one style sheet? The codex says:

    The following example function will only work if your Parent Theme uses only one main style.css to hold all of the css.

    How do I find out if the parent theme has other style sheets and how would I code that into the functions.php file?

    • This reply was modified 3 years, 11 months ago by  josierm.
Viewing 1 post (of 1 total)
Disclosure: This page contains external affiliate links that may result in us receiving a commission if you choose to purchase mentioned product. The opinions on this page are our own and we don't receive additional bonus for positive reviews.
Back To Top