Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1145937
    jlswilton
    Participant

    Hi, I created a child theme when I set my site up, but I’ve made some changes to the functions.php of the child theme, and nothing was changing, so I just checked and apparently I am not USING the child theme; that is, X is the active theme, not the child theme. Not sure how to proceed. If I activate the child theme, will I lose the changes I made so far? Do I need to copy anything over to the child theme?

    #1146040
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You wont lose any of the modifications while activating child theme. However when you update X Theme changes might get overridden. In that regards we recommend you to migrate original changes to child theme. You can also walk-through our child theme setup guide:

    https://community.theme.co/kb/how-to-setup-child-themes/

    Thanks.

    #1146072
    jlswilton
    Participant

    I haven’t made any changes to the php except for what I tried to do today, so that’s not a big deal. Is there any issue with copying over the CSS? I haven’t edited the stylesheet through the WP editor, only through Customizer.

    #1146179
    Friech
    Moderator

    Hi There,

    If you move your custom CSS from Customizer to style.css file of child theme, there no guarantee that every will work. Please learn the CSS Specificity first before you move your custom CSS on child theme’s style.css file.

    If I activate the child theme, will I lose the changes I made so far? Do I need to copy anything over to the child theme?

    If you mean changes on the pages and customizer settings, the answer is no. But you might want to keep a backup of your Customizer settings, that is on Addons > Customizer Manager> Export.

    Your menu might unset as the primary menu, but that can easily fix by setting your menu as primary again, that is on Appearance > Menu.

    If you do not have any modification made on the parent theme, then there is no file you need to copy over. Your Custom CSS can stay on the Customizer.

    Hope this shed some lights.

    Cheers!

    #1146710
    jlswilton
    Participant

    Hi, thanks for the response. I don’t have Customizer Manager in my Addons, nor do I see the option to add it. Do I need to get it from somewhere?

    I’m using Ubermenu for my primary menu- will that be an issue?

    Looking at the Editor for my active theme (X), there are a LOT more php files than in the child theme. I didn’t add them- they’re just there. Will these be recreated in the child theme? I don’t know much about php or how these files are created.

    Thanks again for your quick response!

    #1146716
    jlswilton
    Participant

    Nevermind about Customizer Manager- I didn’t realize it was on the Addons main page. My other questions still stand.

    #1146967
    Rupok
    Member

    Hi there,

    Thanks for writing back. Child Theme is use to overwrite something on parent theme. So you don’t need everything on Child theme that contains on parent theme rather the one you need to overwrite. Hope this makes sense.

    If you have any other question or issue currently then clarify.

    Cheers!

    #1147217
    jlswilton
    Participant

    I went ahead and activated my child theme, and got this error:
    Parse error: syntax error, unexpected ‘}’ in /home/georgemc/public_html/staging.grouppinnacle.com/wp/wp-content/themes/x-child-2/functions.php on line 42

    I can no longer access anything on the site. Advice? Getting a little worried.

    #1147251
    jlswilton
    Participant

    Nevermind. Got some help and sorted it out. For anyone else with this issue, I didn’t update my child theme before I activated it and it was an old version. I went into cpanel and changed the name of the functions.php in the child theme I had activated. That kicked it back to the original functions.php so I could get into the admin panel again and add the updated child theme. Activated it and all is well!

    #1147508
    Lely
    Moderator

    Glad everything is sorted.
    Feel free to open a new thread when you still have questions.

    Cheers!

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