Tagged: x
-
AuthorPosts
-
October 1, 2016 at 12:23 am #1198243
ptbright1ParticipantI had made quite a few edits to my local dev site before creating a child theme. I hadn’t made of changes a TON to the php files, but definitely some, and all of my CSS changes were in the customizer.
Tonight, I created a child theme, but I want to make sure that it’s set up properly and won’t get overridden. The instructions I found told me not to copy over the parent style.css and instead to enqueue styles. When I did that approach, it didn’t look right at all. I’m not sure if the functions.php file was set up properly. So, what ended up working was to include the CSS file, in full, in my child theme.
Does that make sense?
Here’s what I’m wondering… is this OK? What steps should I take to clean this up? I’m happy to send over the CSS file/functions file if that’s helpful.
Everything looks right but I’m worried something could still go wrong.
Thanks!
October 1, 2016 at 12:43 am #1198252
Rue NelModeratorHello There,
Thanks for writing in! If you did not change any of the php files and even js/css files, activating the child theme would not posed any issues. All of your custom css in the customizer will still work with no issues. Are you using the X child theme? TO properly set up the child theme, please check it here: https://community.theme.co/kb/how-to-setup-child-themes/
Hope this helps.
November 18, 2016 at 9:33 am #1262628
ptbright1ParticipantNow that I have the X child theme set up, I’ve actually made some template file changes to the main X theme (not the child). So…do I need to copy those files into the child theme?
November 18, 2016 at 11:06 am #1262708
RahulModeratorHey There,
Thanks for writing back!
Yes, you should copy those templates to your child theme, so whenever you update the theme, your will not lose anything.
Thanks for understanding!
November 18, 2016 at 2:17 pm #1262886
ptbright1ParticipantOk. Last question: is there anything wrong with copying over files that I haven’t changed? For instance, if I never changed _landmark-header.php is it still OK to bring it to the child theme?
November 18, 2016 at 3:45 pm #1262976
JoaoModeratorYes,
It is ok but unnecessary,
Hope that helps
Joao
November 18, 2016 at 7:28 pm #1263210
ptbright1ParticipantGot it–thanks
November 18, 2016 at 8:24 pm #1263261
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1198243 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
