Okay
  Print

Child theme 2.0 Update

Important

This article is outdated. Woffice has a new documentation here: 

https://alkaweb.atlassian.net/wiki/spaces/WOF/overview

If anything is missing, let us know and we will improve it. It was designed to be searchable, more organized and more complete. 

------


(This is only for customers with a child theme who update from version 1.X to 2.X)

In the 2.0 update, we've made MANY changes and in order to improve Woffice's speed time we had to make changes on the way files are loaded (CSS files), that includes changes for the Child Theme. 

What does that mean for me ? 

If you've version 2.0 (updates) on your site AND a child theme enabled, the CSS changes you've made will be overwritten by the parent theme's style (woffice). 

How do I change that ? 

Easy, open wp-content/woffice-child-theme/functions.php and change at the beginning : 

Line 5 to : 

wp_enqueue_style( 'woffice-child-stylesheet', get_stylesheet_uri(), array(), $theme_info->get( 'Version' ) );

Line 8 to : 

add_action('wp_enqueue_scripts', 'woffice_child_scripts', 30);

Update on your FTP and you're good ;)