Oups! (second) Child theme

Hello,

I tried to implement a child-theme by for Illdy theme using this tutorial
https://colorlib.com/wp/guide-to-wordpress-child-themes/.

I have replaced the word “sparkling” by the word “illdy” :slight_smile:

It seems to me it does not work :,-(

This is my style.css file in the illdy-child repertory :).

/*
Theme Name: Illdy Child
Theme URI: https://www.yourwebsite.com/illdy-child
Author: Rafay Saeed Ansari
Author URI: http://www.blogginc.com/
Description: My first child theme. Parent theme: Colorlib's Illdy.
Version: 2.5.0
Template: illdy
Text Domain: illdy-child
Tags: green, light, white, gray, black, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, photoblogging, left-sidebar, translation-ready, custom-background, custom-colors, custom-menu, featured-images, full-width-template, post-formats, theme-options, threaded-comments
*/
@import url("../illdy/style.css");

/* Modification date 19/03/2016 - to fix the jumbotron menu.
   ------------------------------------------------------------------------ */

.top-header {
position: fixed;
z-index: 99;
}

This modification works when in main style.css but not with my child-theme.

Thank if you can see what is wrong.
I am a newbie with wp.

Best Regards. José

In complement, a screenshot of my remote repertory.

BR, José

Hello @jrelland,

Have you managed to achieve this?

I suspect that you need to change the

@import url("…/illdy/style.css");

to

@import url("…/illdy1.0.9/style.css");

Hello thank you for your feedback,

Right now ! I have lost my menu :frowning:
I am not sure to have well understood how the menu works with “Your latest posts”!

Regarding your comment:
The repertory illdy1.0.9 is just a backup :).
The true repertory is illdy (For example, I have the “testimonials carrousel update”, thank you for that).

I feel with your answer that every thing is correct?

BR, José

Hello,

At the end, I have been able to activated the child theme but…

I have applied this: Child Themes « WordPress Codex

You are obliged to return in your wp theme panel and to activate the “new” theme… and you lost all your settings! (Still in the database)
Please confirm if is it normal.
In this case; do you think when you will update your theme, it will work automatically, no need to reactivate my theme again (I will lost the data again)!

You proposed to modify Illdy theme through child theme, I wonder if it’s the best. Alternative way would be just to copy and past your modification in the new style.css file :).

Thank you for your feedback

Best Regards, José

Hello José,

I’m glad that you were able to create and activate the Child theme.

Now that you set everything up in the new theme Customize nothing should get erased when you update the theme.

Depending on the nature of your changes, you can use a plugin like SiteOrigin CSS or like you said, just create an additional stylesheet.css file that won’t get erased when you copy the new theme for upgrade.

There are multiple workarounds for custom modifications, but I still believe creating a child theme from the beginning is the best practice if you plan to do any core modifications.

Thank you for your feedback, as well!

Regards

Hello,

In fact I discarded my child theme as in the codex.wordpress they mention that there is an impact on some functionalities: rtf, languages… I don’t want to “fragilise” my website.

As I think copy and paste CSS code is very easy, I will do that with the upcoming new versions :).

Thank you about SiteOrigin CSS, I will try it :).

Thank you for your time and consideration
Regards, José (France)

I have been at this for hours unsuccessfully. PLEASE SEND ME CODE FOR THE ILLDY CHILDTHEME
JUST REPLY WITH THE CORRECT CODE
PLEASE PLEASE

Hello @savraha1,

If you follow this guide you should be able to easily set up the child theme.

Have you fixed this issue?
https://codex.wordpress.org/Child_Themes

Best regards