Child Theme Changes Not Showing Since Update

This topic has 9 replies, 3 voices, and was last updated 9 years, 9 months ago ago by Eva Kemp

  • Avatar: dbirch44
    dbirch44
    Participant
    March 21, 2015 at 12:39

    Hi there,

    I recently installed the update for the main WooPress theme. I installed the updated theme and everything else was up to date, all plugins and the WP core. The issue I’ve had is that for some reason…the updated main theme has reverted custom css changes I made to the child theme. The child theme has not been changes, updated or overwritten. I remember seeing somewhere about a child theme update you were releasing (which that puzzles me too because child themes are not supposed to be/or need updating).

    Now the changes seem to still be in the child theme, the code is there but they are not reflected on the main site. Have you changed the css classes in the recent update? I’m just trying to figure out what’s happened so I can hopefully get all my changes back without having to re-do them all over.

    This is rather urgent so if you could get back to me asap that would be great.

    Many thanks in advance,
    ~ Daniel

    8 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    March 21, 2015 at 19:15

    Hello,

    Please provide us with wp-admin panel and FTP credentials in Private Content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: dbirch44
    dbirch44
    Participant
    March 21, 2015 at 19:25

    Hi Eva,

    Sure thing. Details are included in the private section.

    Please, contact administrator
    for this information.
    Avatar: Brian Johnson
    Brian Johnson
    Member
    March 23, 2015 at 15:17

    Hello

    Sorry. We cannot login to wp-admin panel with credentials you gave to us. Please check them.

    With bet regards
    Brian Johnson

    Avatar: Eva
    Eva Kemp
    Support staff
    March 23, 2015 at 15:25

    Hello,

    I’ve edited style.css and functions.php files in woopress-child folder and now the changes are shown.
    Please clear browser cache or check the site in another browser.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: dbirch44
    dbirch44
    Participant
    March 23, 2015 at 15:28

    Hi Eva,

    Wonderful, thanks for doing that I can see it’s working now. Can you let me know what the problem is, so I know. Thank you!

    ~ Daniel

    Avatar: Eva
    Eva Kemp
    Support staff
    March 23, 2015 at 16:13

    Hello,

    I’ve added this code in functions.php file in the child theme folder:

    <?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'bootstrap', 'parent-style' ) );
    }

    and removed @import url("../woopress/style.css"); in style.css file.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: dbirch44
    dbirch44
    Participant
    March 27, 2015 at 07:36

    Hi Eva,

    Ok that’s fine. I’m glad it’s working now. But I need to know, why did this code need to be added in the first place? It was working previously without the code…so why did this code need to be added to work?

    I need to understand the problem so I can be sure it doesn’t happen again, thanks.
    ~ Daniel

    Avatar: Eva
    Eva Kemp
    Support staff
    March 27, 2015 at 10:55

    Hello,

    We have already created and included child theme in theme package and that code is written there.
    Also you can read information about child theme here:
    http://codex.wordpress.org/Child_Themes
    “@import” was a previous method to import the parent theme stylesheet and the code from functions.php is used now.

    Regards,
    Eva Kemp.

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.