I don't think you understand what @import means. It means that the url so designated is imported and all styles therein are utilized.
So for example, if I go to:
http://sg.terrybraunstein.com/wp-content/themes/yin_and_yang_child/style.css
I see and only see:
Code:
/*
Theme Name: Yin and Yang Child
Description: Yin and Yang Child Theme
Author: Marek Rozenberg
Author URI: marekr7 [at] gmail [dot] com
Template: yin_and_yang
Version: 1.2.1
*/
/* Theme customization starts here
========================================================================== */
@import url('http://www.sg.terrybraunstein.com/wp-content/themes/yin_and_yang/style.css');
But that means that all the styles in:
http://www.sg.terrybraunstein.com/wp-content/themes/yin_and_yang/style.css
will be applied. And believe me, there are a ton of styles in that file.
Or perhaps this is the problem -
If you are expecting all styles in the latter file to work as they might if that file was actually a <link rel="stylesheet" ..etc.> for the page, they might not. Image paths might not be correct. Though generally they will be.
So which is it? Is the problem that the file is not importing as expected, or that it is importing when you don't think it should be?
One further possibility (could be another/others) is that perhaps the styles in the latter file are already on the page, and now you are importing them again. Sometimes duplicate styles can bunch up and cause issues that would not arise if they were only applied once.
Bookmarks