• Resolved Dutching

    (@dutching)


    Hi,

    I did create a child theme but it does not works however I do repeat the same procedure I use for another blog with another theme.

    Can you help me?

    Look at this example:

    /*
    Theme Name: Zerif Lite
    Description: Child theme  Zerif Lite
    Author: Zerif
    Template: Zerif Lite
    */
    
    @import url("../zerif-lite/style.css");
    
    /*----------------------------------------
     **   Testionial           -----
    -----------------------------------------*/
    .testimonial {
    	background: #FFFFFF;
    	padding-bottom: 90px;
    }
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Dutching

    (@dutching)

    …by the way I way in local, but I don’t think there is any difference?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What do you mean by “does not work”?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    By the way this part:

    Template: Zerif Lite

    Is referring to the name of your parent theme folder

    Thread Starter Dutching

    (@dutching)

    Hi Andrew,

    Sorry I made a mistake in my first message the style css if the child theme is this one:

    /*
     Theme Name:   zerif-lite Child
     Theme URI:
     Description:  zerif-lite Child Theme
     Author:       John Doe
     Author URI:   https://example.com
     Template:     zerif-lite
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     Text Domain:  zerif-lite-child
    */
    
    @import url("../zerif-lite/style.css");
    
    /*----------------------------------------
     **   Testionial           -----
    -----------------------------------------*/
    
    .search-form {
        margin-bottom: 100px;
    }

    It does not work means that whatever I write in the child theme, what I see on my monitor ignore it!

    Thanks.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Even this:

    body {
        border: 10px solid red !important;
    }

    ?
    Are you sure you’ve activated your Child Theme through the dashboard first?

    Thread Starter Dutching

    (@dutching)

    Sorry my friend I forgot to do that! I am very stupid.

    Hi guys,

    maybe you would like to do it the easier way – there is a plugin for creating a child theme: on-click child theme it is called. It eliminated all the hassle around this topic. You just add other php files to the new directory and change them at will.

    If you only need to change the style.css, then you don’t even need a child theme, just use custom css (also a plugin).

    Thanks for the tip snpbizjak!

    I have not tried using Child Theme yet (just learned about them) – I will try those plugins.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How To Create A Child Theme?’ is closed to new replies.