Try leaving off the last 3 @import
Originally, I only had the one and it didn’t work, but this time it cleaned it up (I must not have deactivated and reactivated before). However, the site isn’t a mess like last time, but it still isn’t right.
The functions don’t work, and there are differences between my child theme and the main one. How could that be if I’m simply importing?
It depends how the theme make use of those css.
install.css is not used in theme, it’s used for readme.html only.
ie6.css and ie7.css is automatically loaded, it’s added via add_action()
to wp_print_style
and is refered via get_template_directory_uri()
meaning it will be loaded from parent theme only.
So, in this case, your child theme doesn’t have any reason to add the last 3 @import
, the first one is not used, the other 2 is auto loaded anyway.
If having only one first @import
line like that in your child’s style.css
, give some errors, then there is something else going on.
Yea, that is where I stand right now, with the style.css having just the one import yet it isn’t working right.
For example, the site (dadfeed.com) is supposed to have the slideout panel on the left when you click the +, however it doesn’t work with my child theme. You are saying this is probably an issue with the parent theme itself?
You are saying this is probably an issue with the parent theme itself?
No, it must be something else in the child theme, or plugins.
A child theme with only 1 @import
from parent’s and nothing else can not do anything wrong to the site.
So in this case, I would check the functions.php
in child theme, and also the plugins.
The child theme had nothing else besides the style.css and a copy of the images folder (in case I needed them). There wasn’t even a functions.php file in there until just now when I wanted to test it. But I don’t understand how a plain child theme with nothing in it can affect the look of the page?
Theme options and settings in a parent theme don’t necessarily carry over to a child theme – you have to redo them – it’s like changing to any other new theme – so maybe that’s the problem here.
Also, not all themes will work with a child theme, so that could also be the case here.
If you post a link to your site, it may be easier to help you with this question.
Yea, I’m thinking this theme just isn’t made for a child theme. I checked the settings and nothing needed to be changed.
The site is http://www.dadfeed.com and the clearest example is the left sidebar. If you click the +, it should pop out and it doesn’t. There are other issues but that’s the easiest to see right away.
Hmm, yeah, that looks like that may be the case. You might see if there is anything useful or ask on the developer’s site:
http://www.nattywp.com/
Theme options and settings in a parent theme don’t necessarily carry over to a child theme – you have to redo them
Thank you very much, I forgot about that. Some themes are not child friendly.
Ok, I tried install this theme (silesia) in my local
http://wordpress.org/extend/themes/silesia
and found a fix to that js problem
put this in functions.php
of child theme of this theme.
/**
* Child theme of silesia, fix the path to js
*/
function silesia_child_scripts() {
wp_enqueue_script('silesia_child_load', get_template_directory_uri() . '/js/load.js', array('jquery'), NULL);
}
add_action('wp_enqueue_scripts', 'silesia_child_scripts');
You’re the best! Thanks so much that worked perfectly. All other settings were just placements of widgets that I could now do.
I really appreciate you taking the time to help. Thank you.
Yeah, nice job, paulwpxp :)!