Tagged: x
-
AuthorPosts
-
August 24, 2016 at 10:04 pm #1145937
jlswiltonParticipantHi, 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?
August 24, 2016 at 11:23 pm #1146040
Prasant RaiModeratorHello 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.
August 24, 2016 at 11:53 pm #1146072
jlswiltonParticipantI 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.
August 25, 2016 at 1:53 am #1146179
FriechModeratorHi 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!
August 25, 2016 at 9:57 am #1146710
jlswiltonParticipantHi, 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!
August 25, 2016 at 10:01 am #1146716
jlswiltonParticipantNevermind about Customizer Manager- I didn’t realize it was on the Addons main page. My other questions still stand.
August 25, 2016 at 12:25 pm #1146967
RupokMemberHi 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!
August 25, 2016 at 3:53 pm #1147217
jlswiltonParticipantI 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 42I can no longer access anything on the site. Advice? Getting a little worried.
August 25, 2016 at 4:21 pm #1147251
jlswiltonParticipantNevermind. 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!
August 25, 2016 at 8:27 pm #1147508
LelyModeratorGlad everything is sorted.
Feel free to open a new thread when you still have questions.Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1145937 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
