Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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 :)

    #103433

    Hi,

    Sorry for the delay. I’ve put up a child replete theme here

    Replete Child-Theme Download

    .. 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.

    Thanks,

    Nick

    #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' );

    to

    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, Bernhard

    #103435

    Hey unserwein,

    Thanks for the help. :)

    Regards,

    Ismael

    #103436
    #103437
    #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?

    #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!

    #103440

    Thanks for posting your fix kaylesimon :)

    Regards,

    Devin

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘How Can I make a Child Theme for Replete that allows me to override styling.’ is closed to new replies.