Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter loft75

    (@loft75)

    I modified the style.css as you recommended, but after that it didn’t load the style elements properly, so my site was completely messed up.

    In fact, I do not really need a child theme, because I only modify some style elements. This can also be done with the “extra css”-option in Parabola (that is not affected from theme updates), so I decided to switch back to the parent theme and do all the things I want in the extra css-section.

    A look into page sourcecode showed that only one style.css is loaded – as it should be. All styling works perfect now.

    Anyway, many thanks for your help and effort 🙂

    Thread Starter loft75

    (@loft75)

    This is my child theme’s functions.php, I have no idea if anything goes wrong here:

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        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')
        );
    }

    I’ve made the child theme with the “One-click Child Theme”-Plugin, because it was convenient for me 😉 At the moment, I have only a style.css and a functions.php in my child theme.

    So, what should I do? In fact, 3 stylesheets are loaded: the parent’s, the child’s and the extra-css from the parabola settings. I can’t understand why the lines from my first post are loaded when present in parabola-css, but not in child-css. Theoretically it should do the same, no matter where I place the lines.

    Thread Starter loft75

    (@loft75)

    Thanks for your analysis, it explains the behaviour. I don’t know about style.css-versions, what is it? Where do the version numbers come from? And…how do I fix that?

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