WordPress.org

Ready to get started?Download WordPress

Forums

Creating a child theme (5 posts)

  1. paulamiradaki
    Member
    Posted 1 year ago #

    Hi,

    I have tried for hours to create a child theme and so far, been very unsuccessful.

    I would like to create a child theme for the twenty twelve theme. I use godaddy as my ftp. A few things I am having trouble with is...
    1. I have no idea how to create a folder in Godaddy.
    2. Am I able to create a style.css using 'pages' on macbook?

    Basically what I did (which failed to work or show up in WP) was created a folder on my desktop with a style.css file made from pages inside that folder. I then uploaded the folder using godaddy to wp-content -> themes -> twentytwelve.

    Can someone tell me what I am doing wrong?

    Cheers

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Folder created that way is fine. No, you cannot use pages -- you need to use a plain text editor - a good free one for Macs is

    http://www.barebones.com/products/textwrangler/

    or just use TextEdit which comes with Macs.

    The style.css file must have this exact code in it (and nothing else):

    /*
    Theme Name: Twentytwelve Child
    Description: Child theme for the twentytwelve theme
    Author: Your name here
    Template: twentytwelve
    */
    
    @import url("../twentytwelve/style.css");

    The new folder can be named whatever you want but no spaces, caps or punctuation. The folder does not go inside the twentytwelve theme folder - it just goes in the themes folder -- on the same level as twentytwelve - it's a sibling in that sense.

  3. paulamiradaki
    Member
    Posted 1 year ago #

    Hi Yogi,
    I did exactly as you said... It does not show up in my admin->appearance->themes.

    when i created the style.css in textedit it was saved as style.css.rtf
    I then went to the document in my desktop and deleted the '.rtf'

    this should be ok right?

  4. paulamiradaki
    Member
    Posted 1 year ago #

    and there is nothing in my folder except the style.css
    that correct?

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Go back and make a new document and save as style.css - it might have saved in it an unreadable format. And yes, that file should be the only thing you the child theme folder. What is the name on the child theme folder?

Topic Closed

This topic has been closed to new replies.

About this Topic