• Resolved SCSX

    (@scsx)


    Hi, I just registered to get some help…

    I created a child theme for Twenty Twelve and setup the new CSS structure, etc. Everything went fine. As I copied and pasted header.php in my child theme folder no CSS is loaded, even I don’t actually change the code in it. is there something I’m missing?

    I didnยดt want to change the original header.php, that’s no the point of child themes at all, right?

    Thank you

Viewing 15 replies - 1 through 15 (of 23 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you post here the code in your Child Theme style.css file?

    Thread Starter SCSX

    (@scsx)

    Hi Andrew, thanks. Here it is:

    /*
    Theme Name:   fd-child-theme
    Theme URI:   http://xxxx.xxx
    Description:  Child theme for the Twenty Twelve
    Author:     SCSX
    Author URI:   http://xxxx.xxx
    Template:    twentytwelve
    Version:    1
    */
    
    @import url("../twentytwelve/style.css");
    
    /* SELF */
    @import url("css/fotografiadentaria.css");

    And fotografiadentaria.css has just test css, like background-color – which works fine, until I replace header.php. Then there’s no css at all…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In which directory is your Child Theme?

    Thread Starter SCSX

    (@scsx)

    In fd-child-theme, same level as twentytwelve

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    May you provide a link your website?

    Thread Starter SCSX

    (@scsx)

    Off course, here it is:

    http://www.fotografiadentaria.com

    Thread Starter SCSX

    (@scsx)

    Oh, that’s without header.php. I can put it if needed. Thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you can, that would be great please ๐Ÿ™‚

    Thread Starter SCSX

    (@scsx)

    There it is ๐Ÿ™‚

    No css(?)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you use PasteBin to hold the code from your header.php file and send us a link of it?

    Thread Starter SCSX

    (@scsx)

    Here it is:

    http://pastebin.com/PiADXGY4

    It’s actually the original header.php from twentytwelve, just copied it

    Can you go back and activate twentytwelve theme (not child)? Something is not right – your site is loading the twentyeleven theme.

    Thread Starter SCSX

    (@scsx)

    There it is. I didn’t even noticed that, had never used either one of them…

    Okay, good, so we know that works okay. Now, with only the style.css file in the child theme and ONLY the one @import line (not the one to your css file) — just so we can sort out where the problem pops up. Like that, activate the child theme.

    Thread Starter SCSX

    (@scsx)

    Ok, here it is: child theme active and only it’s basic CSS:

    /*
    Theme Name:   fd-child-theme
    Theme URI:   http://scsx.info
    Description:  Child theme for the Twenty Twelve
    Author:     SCSX
    Author URI:   http://scsx.info
    Template:    twentytwelve
    Version:    1
    */
    
    @import url("../twentytwelve/style.css");

    Thanks!

Viewing 15 replies - 1 through 15 (of 23 total)

The topic ‘Overriding header.php: no CSS!’ is closed to new replies.