• Resolved JapeNZ

    (@japenz)


    Hi there,
    I’ve updated from 4.0.5 to 4.2.1 and my child theme customizations are no longer being applied.
    I’ve also tried creating a new style.css file in the child theme to see if I can effect the front end but nothing is happening.

    Any help would be very much appreciated.

    Kind regards,
    JP

    • This topic was modified 4 years, 8 months ago by JapeNZ.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    We checked and found that child themes are working with the latest version.
    could you please provide a link to your child theme’s functions.php and style.css files so we can take a look.

    Thank you

    Thread Starter JapeNZ

    (@japenz)

    Hi @manishverma, @cyberchimps
    I have the following in my functions.php:

    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }

    Should this be something else?
    Works fine with 4.0.5.

    My website with Responsive 4.0.5
    Comic Book Shop

    My website with Responsive 4.2.1
    Comic Book Shop Staging

    Thanks for your help.

    Kind regards,
    JP

    • This reply was modified 4 years, 8 months ago by JapeNZ.
    • This reply was modified 4 years, 8 months ago by JapeNZ.

    Hi @japenz

    Seems like you have not enqueued child theme CSS files.
    If your child theme has CSS files you will need to enqueue it as well.
    To check how to enqueue child theme CSS please check
    https://developer.www.ads-software.com/themes/advanced-topics/child-themes/#3-enqueue-stylesheet

    The way to enqueue child theme CSS will be the same in both versions but the CSS classes and HTML elements may be different in different versions due to improvement and updates in the theme so you will have to update your child theme CSS accordingly.

    Thank you

    • This reply was modified 4 years, 8 months ago by manishverma.
    Thread Starter JapeNZ

    (@japenz)

    Hi @manishverma

    Thanks buddy, that sorted it ??

    • This reply was modified 4 years, 8 months ago by JapeNZ.
    • This reply was modified 4 years, 8 months ago by JapeNZ.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child theme no longer being applied’ is closed to new replies.