If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
January 14, 2013 at 11:29 pm #19367
Howdy everyone, can anyone at all help me in creating a child theme for replete that will allow me to override the default styling?
I have looked at the WordPress codex and I have created child themes before…but having an issue with my css in the child theme not overriding the parent theme (replete).
Ps. I tried searching the forums here to see if there were any other similar cases as mine but couldn’t find one.
Thanks in advance to anyone who could help me with this. Cheers :)January 17, 2013 at 4:17 am #103433
Sorry for the delay. I’ve put up a child replete theme here
.. Just download the zip and install it as you would any theme, and activate it. If your parent theme folder is called anything other than ‘replete’ (capitalization counts), then you will need to modify line 11 of style.css in the child theme folder.
NickJanuary 20, 2013 at 12:41 pm #103434
I had the same problem, and the child theme didn’t work for me (Replete 1.0). It seems that Replete currently doesn’t support child themes.
So I changed line 160 in functions.php from
wp_register_style( 'avia-custom',get_template_directory_uri()."/css/custom.css", array(), '1', 'screen' );
wp_register_style( 'avia-custom',get_stylesheet_directory_uri()."/css/custom.css", array(), '1', 'screen' );
and put my styles into replete-child/css/custom.css.
I think all the wp_register_style() calls around line 160 should be changed from get_template_directory_uri() to get_stylesheet_directory_uri(), then we could override the styles. I didn’t look at the other register calls, maybe they should be changed as well.
Hope this helps!
Cheers, BernhardJanuary 20, 2013 at 9:50 pm #103435March 18, 2013 at 5:00 pm #103436March 18, 2013 at 5:12 pm #103437March 18, 2013 at 5:22 pm #103438
When I install the replete-child theme, either via the dashboard or FTP, I get a message that says “The parent theme is missing. Please install the “Replete” parent theme.” Even though the parent theme is right there. Does the change to functions.php have to be made in order to get the child theme to even work at all? And if so, what happens with the next update to replete, will the child theme stop working?March 18, 2013 at 6:02 pm #103439
For those also struggling with this, the item that needs to be altered in replete-child/style.css is on line 5, not line 11. For me, Replete had to be changed to replete to match the name the theme uses for it’s theme folder. Line 11 already had the lowercase, but line 5, where it says Templete: Replete, had to be changed to Template: replete, for this to work. Cheers!March 19, 2013 at 6:50 pm #103440
The topic ‘How Can I make a Child Theme for Replete that allows me to override styling.’ is closed to new replies.