• Resolved Dot

    (@dianetingleyhotmailcom)


    Hello,

    I’m trying to create a child theme. I have my file, saved in notepad, and my new directory in filezilla, but I don’t know how to connect the two: how do I get my css file into the new directory I create; or where and how do I create the new directory please?

    Diane

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your new directory will need to go into your standard WordPress themes directory – usually /wp-content/themes/

    You’ll then need at-least a style.css file in that directory, with something like the following at the top of it:

    /*
    Theme Name: My child theme
    Theme URI: http://mywebsite.com
    Description: My child theme for TwentyTwelve
    Author: Your name
    Author URI: http://myotherwebsite.com
    Template: twentytwelve
    Version: 1.0
    */

    Note – the ‘Template’ line is the most important, as this is what connects your child theme to your parent theme. Ensure this is simply the name of the parent theme directory, NOT just the normal name of the theme!

    If the style.css file is inside your new directory, and this is uploaded to your WordPress theme directory, you should be able to simply activate it via the admin area under Appearance > Themes

    If you need more information about this process, please refer to the official Codex page: http://codex.wordpress.org/Child_Themes

    I have my file, saved in notepad, and my new directory in filezilla, but I don’t know how to connect the two: how do I get my css file into the new directory I create; or where and how do I create the new directory please?

    Do that at a location of your choosing on your computer just like you would with any other new folder and file, then use FileZilla to upload that Child Theme folder into your themes folder at your site.

    Thread Starter Dot

    (@dianetingleyhotmailcom)

    Thanks guys

    This is really helpful

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