I have set up a Worpress page with Multisite and Multilingual Press to support english and german. Currently only working on the english version.
I use the "definition" theme of WooThemes and have set up a child theme (following this manual) to customize the design to my needs. Basically this works fine, with some exceptions.
I have created the child theme directory, adopted the example style.css to my needs (including the ../definition/style.css, Theme Name, Template). As long as I overwrite css definitions which are defined in the style.css, everthings is fine. The parent theme also defines styles in other files (e.g. themes/definition/css/layout.css). If I overwrite on of this styles, nothing happens. I have allready tried to create the same file on the same path in the child theme folder, but to no avail.
When I check with Chrome element examination (?) in the css style section, I see it is still loading the style from the parent file.
for classes in style.css it shows following url: "host/wp-content/themes/definition-child/style.css?ver=3.9.2:69"
but for classes out of css/layout.css it shows a link to the parent theme: "host/definition/css/layout.css?3.9.2:87"
to be exhaustive the style.css file:
/* Theme Name: WooThemes Definition Calendr.it Child
Theme URI: TODO to be defined.
Description: WooThemes Definition Calendr.it Child Theme
Author: Andras Scheucher
Author URI: http://andreasscheucher.com
Template: definition
Version: 1.5.0
Tags: TODO to be defined
Text Domain: definition-celendrit-child
*/
@import url("../definition/style.css");
/* =Theme customization starts here
-------------------------------------------------------------- */
....
After reading this article (and not fully understanding it) I also tried to load the css/layout.css with this functions.php:
<?php // register and enqueue the stylesheet.
add_action( ‘wp_enqueue_scripts’, ‘register_child_theme_styles’ );
function register_child_theme_styles() {
wp_register_style( ‘style’, get_stylesheet_uri() );
wp_enqueue_style( ‘style’ );
wp_register_style( ‘layout’, get_stylesheet_uri() + "/css" );
wp_enqueue_style( ‘layout’ );
} ?>
This did not help, but I assume it's not correct anyway.
Any hints, what I could try else?
If you need code parts, of the definition theme, I can give them of course...