• I want to crate a child theme, so i need to crate a directory. as i am totally new, and don’t know anything about this,so please help me with this. descriptively, In where i should create this directory?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to carefully read the article I already posted in your other thread:

    http://codex.wordpress.org/Child_Themes

    Thread Starter Mrinmoyee

    (@mrinmoyee)

    yap, got that. Thank you. 🙁

    1. Download and install FileZilla.
    2. Open Filezilla and press CTRL+S, CMD+S, or File > Site Manager
    3. Click [New Site] – call it whatever – and for the details enter your ftp details. Generally, these will be:
    Host: Website URL
    Port: 21
    Logon Type: [Normal]
    Username: (Whatever was emailed to you when you bought the hosting)
    Password: (Whatever was emailed to you)
    4. Click [Connect]
    5. In the Right hand box, navigate to /public_html/wp-content/themes/ (or /public_html/<subdirectory>/… – depending where you installed WordPress to begin with)
    6. Create a new folder for your Theme – name it whatever you want.
    7. Create a style.css in this folder, and on the first lines paste:

    /*
    Theme Name:     Theme Child
    Theme URI:      http://example.com/
    Description:    Child theme for a theme
    Author:         Your name here
    Author URI:     http://example.com/about/
    Template:       OriginalParentThemeName
    Version:        0.1.0
    */

    8. Voila! You have made a child theme.

    Except you are missing the @import line in the style.css file :).

    /*
    Theme Name:     Theme Child
    Theme URI:      http://example.com/
    Description:    Child theme for a theme
    Author:         Your name here
    Author URI:     http://example.com/about/
    Template:       OriginalParentThemeName  (note this must be exact and is case sensitive)
    Version:        0.1.0
    */
    
    @import url('../parentthemename/style.css');

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to Create directory to hold child theme, and create child theme.’ is closed to new replies.