• Resolved Kyron

    (@kyron)


    Hi,
    I’m trying to create a child theme for twentythirteen, using Filezilla.

    I took, as far as I’m aware, all the steps I needed to take according to the several tutorials I looked up.

    The dashboard keeps saying the style.css doc is missing, and so the child theme isn’t active.
    But I put the style.css there… I don’t know what I might do wrong anymore.

    Is there anyone who can help me with this?

    Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)
  • WPyogi

    (@wpyogi)

    What’s in your style.css file?

    Thread Starter Kyron

    (@kyron)

    How do I find out? (I don’t know how to open it!! I feel such a beginner – which I am)

    WPyogi

    (@wpyogi)

    You should have created it yourself – is this what you are following?

    https://codex.www.ads-software.com/Child_Themes

    Thread Starter Kyron

    (@kyron)

    No, I was following other tutorials on the web… but just now I managed to open the style.css in Dreamweaver

    I am creating it myself, not using a plugin or so

    WPyogi

    (@wpyogi)

    Okay, cool, so that file should only have this in it:

    /*
     Theme Name:   Twenty Thirteen Child
     Template:     twentyfifteen
    */

    You can add the other lines if you want – but only the above are mandatory for it to work.

    Then you also need a functions.php file – with this in it:

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }

    Thread Starter Kyron

    (@kyron)

    ok I think I’ve made a mess of it.

    I think I didn’t copy the style.css document from the theme, because it isn’t there in the theme’s map. In the twentythirteen map’s css folder, I find two documents: ‘ie.css’ and ‘editor-style.css’ … not style.css

    I have style.css on my desktop and in my child theme’s map

    WPyogi

    (@wpyogi)

    You shouldn’t copy any files to the child theme folder to begin with. Just make a new style.css file and a new functions.php file – put only the code I posted above in each of those files.

    Put those two files inside a folder (on your local computer) called twentythirteenchild. Then upload that folder to your server to the themes folder – i.e.

    wp-content
        themes
            twentythirteen
            twentyfourteen
            twentythirteenchild - THIS IS YOUR NEW CHILD THEME

    Thread Starter Kyron

    (@kyron)

    `/*
    Theme Name: Twenty Thirteen Child
    Template: twentyfifteen
    */

    WPyogi, thank you for your help!!
    But why do I have to call the template twentyfifteen? I use the twentythirteen theme.

    WPyogi

    (@wpyogi)

    Oops, sorry, mis-copied that – YES, definitely change to twentythirteen!

    Thread Starter Kyron

    (@kyron)

    How do I remove documents, maps and folders from the remote site in Filezilla?

    WPyogi

    (@wpyogi)

    Thread Starter Kyron

    (@kyron)

    Oh ok, than I got THAT one right, he he…

    I made a mess of the files… a twentythirteen child folder within a twentythirteen child map… stuff like that. And I have no clue how to get that right…

    WPyogi

    (@wpyogi)

    That’s okay – you can just delete the entire thing using FTP – and then from your Dashboard reinstall the parent twenty thirteen.

    Then go back and start over making the child theme on your local computer and upload the new folder to the right place.

    Thread Starter Kyron

    (@kyron)

    How do I delete..? I can’t find the answer in the link you gave me…

    Before that, I already reinstalled the theme, and the child theme is activated. So your advice worked out well!

    But because it’s such a mess, I don’t trust on it, I need the basics to be clean…

    But… so… how do I delete..?

    Thread Starter Kyron

    (@kyron)

    YES!!!! I did it!
    (on a mac, you use the ctrl button for the context menu)

    WPyogi, thanks again for your help, I’m very glad you were here today ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Creating child theme’ is closed to new replies.