• Hello
    I made a child theme for my theme “catalyst”, made there some page templates and that works, but .css doesn’t seem to work.

    /*
    Theme Name: catalyst-child
    Theme URI:
    Description:
    Author:
    Author URI: https://inakademia.pl
    Template: catalyst
    Version: 1.3
    */
    @import url(“../catalyst/style.css”);

    /* =Theme customization starts here
    ——————————————————- */

    I have something like this in my style.css. But when I check the source it still imports the old .css

    what can be wrong?
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • it still imports the old .css

    That would be correct. It is being imported by @import url("../catalyst/style.css");.

    In almost every case, you want to import the parent theme’s style.css, because you don’t want to have to re-write every styling rule. After you import in the parent’s style.css, then you write your own rules to either add to the parent theme’s styling or override an existing CSS rule.

    Thread Starter zel

    (@zel)

    Sorry, I’ve written it a little confusing. ??

    Saying “it stills imports the old .css” I’ve meant, that it doesn’t load .css from my child theme, but the old one, from the parent theme.

    When I insert any css after “import” it doesn’t show in my source. It’s still old css, pointing to the catalyst folder.

    EDIT:
    ok, I managed to get it working.
    Just placed
    <link rel=”stylesheet” href=”<?php echo get_stylesheet_uri(); ?>” type=”text/css” media=”screen” />
    inside my header.php of parent. Seems that wp_head(); of theme had absolute path to css or smth ??
    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child-Theme .css not recognized’ is closed to new replies.