This topic has 9 replies, 3 voices, and was last updated 9 years, 9 months ago ago by Eva Kemp
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
Hello,
Please provide us with wp-admin panel and FTP credentials in Private Content.
Thank you.
Regards,
Eva Kemp.
Hi Eva,
Sure thing. Details are included in the private section.
Hello
Sorry. We cannot login to wp-admin panel with credentials you gave to us. Please check them.
With bet regards
Brian Johnson
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.
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
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.
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
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.
Tagged: changes, child theme, templates, updates, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up