• Resolved drjkiel

    (@drjkiel)


    Hey folks, following the child’s theme guide here: http://codex.wordpress.org/Child_Themes

    I’ve created the folder with a style.css file. Below is what I’ve pasted into that file.

    /*
    Theme Name: Fanwood Child
    Theme URI: http://drjohnkiel.com/wp
    Description: Child theme for the fanwood theme
    Author: John Kiel & Josh Beers
    Author URI: http://drjohnkiel.com/wp
    Template: fanwood
    Version: 0.1.0
    */

    @import url(“/fanwood/style.css”);

    Now when I save this and try to activate the fanwood-child theme on wordpress, it doesnt work. The website is still active and links work, but all the theme stuff is removed. What am I doing wrong?

    Thanks,
    John

Viewing 15 replies - 1 through 15 (of 15 total)
  • This line is not quite right:

    @import url("../fanwood/style.css");

    After changing that switch to another theme and then back to the child.

    Thread Starter drjkiel

    (@drjkiel)

    /*
    Theme Name: Fanwood Child
    Theme URI: http://drjohnkiel.com/wp
    Description: Child theme for the fanwood theme
    Author: John Kiel & Josh Beers
    Author URI: http://drjohnkiel.com/wp
    Template: fanwood
    Version: 0.1.0
    */

    @import url(“../fanwood/style.css”);

    ————–
    The above is what it says now. I imported this back in, then imported a totally different them, and switched back to fanwood-child. Same issue.

    This line is still wrong:

    @import url("/fanwood/style.css");

    Try changing it in the Appearance > Editor – switch themes and switch back.

    Thread Starter drjkiel

    (@drjkiel)

    Still no dice =/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is your Child Theme activated at the moment? If so, can you link us your website?

    Thread Starter drjkiel

    (@drjkiel)

    http://drjohnkiel.com/wp/

    yes, thanks again guys I suck at this.

    That line is not getting changed – do you have caching on your site? Are you saving the changes and switching to another theme and then back?

    I’m assuming this is your site: http://drjohnkiel.com/wp/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You still have this line in:

    @import url("/fanwood/style.css");

    Thread Starter drjkiel

    (@drjkiel)

    I just copied and pasted this from appearance -> editor -> fanwood child

    @import url(“/fanwood/style.css”);

    Is that incorrect? Andrew your post makes it sound wrong, but wpyogi made it sound correct earlier. As for cacheing, it’s whatever the default is because I’ve never changed it. And yes, saving, switching and switching back.

    John

    You are missing the two “dots” – look more carefully.

    Thread Starter drjkiel

    (@drjkiel)

    I had them before and it didnt seem to make a difference. I have since re-added them.

    I also switched to a different theme and back. Didn’t fix it. This is the updated page (no changes) with the ‘two dots’ back in.

    http://drjohnkiel.com/wp/

    It’s working! Yay! Clear your browser cache.

    Thread Starter drjkiel

    (@drjkiel)

    You guys are gods among men. Thanks so much. I’m sure I’ll be back with more pull-my-hair out coding issues later =)

    Thread Starter drjkiel

    (@drjkiel)

    Actually, I think you can save me a bunch of time. I just want to remove the “recent comments” and “meta” sections from the bottom of the page. This is the whole purpose of the child theme.

    Can you advise me how to do this as simply as possible? <3

    and women :)!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Need help with @import’ is closed to new replies.