-
Rather than explain etc, I have set up two site.
Both with same configuration.
One is VintageImmersed. The other is a Child theme of Vintage Immersed.
Main Site: test.keyboardcook.com
Child site: child.keyboardcook.com
Please look at how the responsive element of the homepage do not work on the child theme.
I have done a text compare of the source codes of both homepages when loaded into browser. No real difference except for normal behaviour of child style sheet being called.
Any ideas?
*******************************
Data in child style.css
*******************************
/*
Theme Name: Vintage Immersed Child
Theme URI: http://wedesignthemes.com/themes/vm/
Description: Vintage Immersed is a pixel perfect and rich WordPress Theme made to promote fashion portfolio, photography, furniture and interior design profiles. The flexibility of the theme will help to customize the design to suit variety of themes. The elegant design is carved in Photoshop using the 960 grid system. It is cross browser compatible.
Author: designthemes
Author URI: http://themeforest.net/user/designthemes/
Template: VintageImmersed
Version: 2.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: yellow, blue, green, gray, red
Text Domain: vm-child
*/
*******************************
Data in child functions.php
*******************************
function theme_enqueue_styles() {
$parent_style = ‘parent-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style )
);
}
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
*******************************
Okay. I’ve answered this myself, so posting the solution.
The issue id the order in which stylesheets load. The theme breaks when one enqueues as per wordpress standards.
A workaround is:
a) put a header.php in the child theme. Just after line 19 (” rel=”stylesheet” type=”text/css” />) (no comment) and before the line place this code:
/style.css” rel=”stylesheet” type=”text/css” />
(again. no comment)
b) remove the funtion I called theme_enqueue_styles() from your functions.php.
It’s a hack, but sure….no comment.
*
b) remove the function I called theme_enqueue_styles() from your functions.php
Hi.,
OK, Thank you for the solution. We will check the issue and update it.
The forum ‘Vintage Immersed Multipurpose WordPress Theme’ is closed to new topics and replies.