Broke Child Theme?
-
Somehow I broke my child theme by copying the parent style.css to my child theme folder 🙁 Can I fix this?
-
This theme is broken. Template is missing.
Have you tried following the Codex instructions?
http://codex.ww.wp.xz.cn/Child_Themes#How_to_Create_a_Child_ThemeIt was working then once I overwrote the styles.css file in the child theme folder with the parent theme style.css I got the template is broken error. 🙁
I am going to look at the link.
Don’t overwrite the comments in the top of the Child Theme style.css file, and don’t copy the entire parent theme’s CSS into your Child Theme CSS. If you understand what the
@importline is doing you’ll realise that copying all of the styles again will only duplicate code.Ok I need to recreate the child theme css
Is this possible? I will look again at how to do this.You can do this but I’m not sure how you’ll get back your Child Theme CSS that you said you were working on before
I didnt change anything in it I will use the one in the zip file 😐
OK it seems to be working I need to figure out how to change styles propery. I was trying to change the orange color but wanted to change it in child theme.
Should I cahnge colors in the parent theme?
Thank you.
I’m not sure why you can’t change this in your Child Theme without copying the entire parent theme’s CSS over. You should be able to do something like this in your Child Theme style.css file:
p { color: red; }I want every orange color out, the hovers etc, there seems to be alot of orange in the theme. I was reading about the .less file. also.
Then you’ll have to write a lot of CSS to add to your Child Theme style.css file,
.widget-title, .nav-previous a:link, .nav-previous a:visited, .nav-next a:link, .nav-next a:visited, a:hover, a:active, .widget-area .widget a:hover, .widget-area .widget a:active, .widget-area .widget .children li.cat-item a:hover, .widget-area .widget .children li.page_item a:hover, .widget-area .widget .current-cat-parent a:link, .widget-area .widget .current-cat-parent a:visited, .widget-area .widget .current_page_parent a:link, .widget-area .widget .current_page_parent a:visited, .widget-area .widget .current-cat-parent .current-cat, .widget-area .widget .current-cat-parent .current-cat a:link, .widget-area .widget .current-cat-parent .current-cat a:visited, .widget-area .widget .current_page_parent .current_page_item, .widget-area .widget .current_page_parent .current_page_item a:link, .widget-area .widget .current_page_parent .current_page_item , a:visited, .widget-area .widget .current-cat, .widget-area .widget .current-cat a:link, .widget-area .widget .current-cat a:visited, .widget-area .widget .current_page_item, .widget-area .widget .current_page_item a:link, .widget-area .widget .current_page_item a:visited, footer[role="contentinfo"] a:hover, #footer-widgets a:hover, #footer-widgets a:active, #site-generator a:hover, .entry-header .entry-title a:hover, .comments-link a:hover, .entry-meta a:hover, .entry-content a:hover, .comment-content a:hover, .archive-header a:hover, .archive-header a:active, .comments-area article header a:hover, a.comment-reply-link:hover, a.comment-edit-link:hover, .template-front-page #main .widget-area .widget li a:hover, .site-header h1 a:hover, .site-header h2 a:hover, .widget-area .widget a:hover.icon-webfont, .widget-area .widget a:hover .icon-webfont, .widget-area .widget a:active.icon-webfont, .widget-area .widget a:active .icon-webfont { color: red; }I know it’s annoying and cumbersome but you are trying to do a lot of CSS modifications, you’re trying to replace all of the colours.
THis is my first time using WP.
I don’t want orange so I suppose I will change. Thank you for helping!
You will change themes?
Noooo I do not want to. Just change the orange color.
I provided you the code to do that
The topic ‘Broke Child Theme?’ is closed to new replies.
