Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1198243
    ptbright1
    Participant

    I 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!

    #1198252
    Rue Nel
    Moderator

    Hello 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.

    #1262628
    ptbright1
    Participant

    Now 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?

    #1262708
    Rahul
    Moderator

    Hey 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!

    #1262886
    ptbright1
    Participant

    Ok. 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?

    #1262976
    Joao
    Moderator

    Yes,

    It is ok but unnecessary,

    Hope that helps

    Joao

    #1263210
    ptbright1
    Participant

    Got it–thanks

    #1263261
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1198243 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>