• I need to create a Child theme. Your instructions say ‘Create a directory in your themes directory to hold the child theme.’

    Where is that directory. Is that on my own desktop or within the WP dashboard?

    Thanks

Viewing 15 replies - 16 through 30 (of 34 total)
  • Thread Starter deansplit

    (@deansplit)

    Thanks Dave, yeah that’s how I have it, here’s the whole entry (is this right?):

    *
    Theme Name: Divi Child
    Theme URI: https://shutterlydivine.co.uk/divi-child/
    Description: Divi Child Theme
    Author: Dean Richman
    Author URI: https://shutterlydivine.co.uk
    Template: divi
    Version: 1.0.0
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: divi-child
    */

    @import url(“../divi/style.css”);

    /* =Theme customization starts here
    ————————————————————– */

    Use Template: Divi

    I think it’s the capitalisation.

    Thread Starter deansplit

    (@deansplit)

    But I specifically followed the example and they don’t use caps there, but do for the theme name…

    /*
    Theme Name: Twenty Fourteen Child
    Theme URI: https://example.com/twenty-fourteen-child/
    Description: Twenty Fourteen Child Theme
    Author: John Doe
    Author URI: https://example.com
    Template: twentyfourteen
    Version: 1.0.0
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: twenty-fourteen-child
    */

    @import url(“../twentyfourteen/style.css”);

    /* =Theme customization starts here
    ————————————————————– */

    Thread Starter deansplit

    (@deansplit)

    But it worked! ??

    However, when I activate it it deactivates Divi and changes the page totally…?

    The Divi theme folder is in your wp-content directory and it starts with a capital D. I know because I’ve read its stylesheet ??

    Thread Starter deansplit

    (@deansplit)

    Yeah cap D worked, I can activate it. But are you replying to my latest post there…? It’s overridden the main theme when I activate it.

    If all you’re doing is importing the CSS rules from the parent, it shouldn’t really change anything? Did you change the @import line too, as in making Divi start with a capital?

    You may not be used to the *nix world. A D and a d are completely different things ??

    Thread Starter deansplit

    (@deansplit)

    Not sure that’ll do anything as it’s clearly able to be activated now whereas before it wasn’t, but now I think WP is seeing it as the whole theme/file.

    https://www.shutterlydivine.co.uk/wp-content/themes/divi/style.css

    doesn’t exist, whereas:

    https://www.shutterlydivine.co.uk/wp-content/themes/Divi/style.css

    does.

    So if you keep the letter D as lowercase in your child theme stylesheet, it’s not going to import any CSS rules.

    Thread Starter deansplit

    (@deansplit)

    So which are you saying is correct Dave? I’ve changed it to cap D, but the problem I’m getting is when I then activate the child theme as instructed (Activate the child theme. Log in to your site’s dashboard, and go to Administration Panels > Appearance > Themes. You will see your child theme listed there. Click Activate.) it loads a different page. At the mo it’s only a holding page while I build the real site.

    I would send you a grab of the 2 versions but can’t upload on this forum can I?

    I could temporarily activate the child for you to see what I mean?

    If you have the template and the import both starting with a capital D and the child-theme is mis-behaving, we’ve hit a brick wall in these forums. Since your theme is a commercial one, nobody here can see the templates to advise you. You’d have to take it up with Elegant Themes.

    If you activate the child-theme I’ll still take a look though.

    Thread Starter deansplit

    (@deansplit)

    OK, thanks.

    Well the cap D does work, only in that I can actually activate it within my dashboard whereas before with lowercase d is said the theme was broken.

    So I trust you’ve seen how the site looks at mo? Confirm back and I’ll swap it immediately.

    Cheers

    OK I’ve seen it.

    Thread Starter deansplit

    (@deansplit)

    OK, check it now, although I posted on the ET forum and just had a reply saying “make sure you are importing the parent style.css file in the child one. You can find that instruction in the codex link you have”

    But all I’ve done is follow the WP instruction on the said codex link so I’m none the wiser!

    You’re failing to import the parent’s stylesheet. You have left this line:

    @import url("../divi/style.css");

    It should be a capital D.

    Did you change the @import line too, as in making Divi start with a capital?

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘Where's the theme directory to make the child theme?’ is closed to new replies.