• Resolved markcool

    (@markcool)


    I am attempting to create a child theme for 2010 following tutorials found here by Ian Stewart and in the codex.

    I have the directory and the style.css withing the directory. I have activated the child, and I end up with a raw theme: markcoolfolksinger.com

    The line that I’m uncertain about is the import url one. Do the quotes go in there? Do the parantheses and quotes go? What gives?

    Here’s what I currently have in the style.css file for my child that’s giving me that result. Any tips?

    /*
    Theme Name: Twenty Ten Child
    Description: Child theme for the Twenty Ten theme
    Author: Mark Cool
    Template: twentyten
    */
    
    @import url ("https://www.markcoolfolksinger.com/wp-admin/theme-editor.php?file=/themes/twentyten/style.css");

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Change that to:

    /* Import TwentyTen styles */
       @import url('../twentyten/style.css');
    Thread Starter markcool

    (@markcool)

    Thanks for the response Emil,

    I plugged that in, and don’t see any change on the site.

    The code below shows in the style.css, and I clicked update file in the theme editor.

    /*
    Theme Name: Twenty Ten Child
    Description: Child theme for the Twenty Ten theme
    Author: Mark Cool
    Template: twentyten
    */
    
    /* Import TwentyTen styles */
      @import url('../twentyten/style.css');

    What am I missing? Can you tell?

    Thread Starter markcool

    (@markcool)

    Oops, I’m an idiot.

    The code got garbled in my email and I copied and pasted with #39 @ both ends.

    Pasted the code from here and it works perfectly.

    I didn’t realize the tutorials were completely literal.

    Thank you Emil, I have been on this for hours. It’s fun learning new stuff, but sometimes taxing!

    Best,

    Mark

    Now I can see your site ?? After this you can start changing the look of your child theme.

    i.e. in this Twenty Ten Child style.css grab the css from ../twentyten/style.css and start editing.

    Example:

    /* =Global Elements
    -------------------------------------------------------------- */
    
    /* Main global 'theme' and typographic styles */
    body {
    	background: #000; /* black background */
    }

    There’s one thing I noticed and that’s the space in your child theme folder:
    https://www.markcoolfolksinger.com/wp-content/themes/twenty<–>ten<–>child.style.css

    use no space i.e. twentytenchild or twenty-ten-child.

    Emil

    Glad to hear that you like working on WordPress, if this answered your question, please hit the resolved from your end.

    Enjoy the beauty of WordPress,
    Emil

    Thread Starter markcool

    (@markcool)

    OK,

    Thank you very much again.

    I am so grateful to have some help after toiling on a learning curve. I appreciate you taking a few minutes to share your skill.

    I decided I was going to learn to build these sites myself instead of hiring someone. I crashed my other site, ivegotahammer.com, while trying to edit code, and ended up spending a couple of days learning how to use ftp to fix it.

    This one is for my music, so I want to create a good feeling space for people to visit, reflective of the style and mood of the folk/ alt-country music I play.

    Cheers,

    Mark

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help with creating a child theme in 2010’ is closed to new replies.