-
AuthorPosts
-
April 15, 2015 at 7:29 am #428714
Hello,
I’ve never used child theme before until today when I realize it’s better to use child theme to preserve customization of my existing site for the upgrade of 3.0 to 3.1.
I’d like to describe what I did and ask if you see any problems with my process and explain why the new child theme doesn’t look like the original, existing enfold theme that has been customized.
As far as I know, 5 files that have been modified under the enfold fold/subfolder
footer.php
header.php
/css/base.css
/css/layout.css
/includes/helper-main-menu.phpThis is what I did as far as creating child theme
1. install a plug-in, One-Click Child Theme, then install a Child Theme with 3 files in it, function.php, style.css and a rtl.css. (please see below for screen shots)
2. I then import Parent Theme Setting under Import/Export
3. I then import Theme Setting from previous exported Theme Setting from the parent theme
4. I then copy (via ftp) the 5 files above with folder structure into the enfold child folder (see image below)
5. Now I check the website, there are two problems I notice. (see below)
a. the search icon appears on the main menu. Now I checked the parent theme, the search icon didn’t appear on the main menu, but the option is actually selected in the Append search icon to main menu. Now I have to un-check this in the child theme to get rid of it.
b. the big problem is, there are extra pages displayed on the main menu even though in the menu set up, these additional tabs were clearly not selected and they didn’t appear in the parent theme neither.
(see images attached)So I’d like to clarify two things before I proceed to upgrade the enfold them because I have other sites built with the theme that I also need to upgrade therefore need to understand this correctly.
1. Did I create the child theme, specifically copy files correctly? Now I didn’t modify either style.css file or function.php or rtl.css file because I’m not 100% sure everything that has been modified in those 5 files above.
2. Related to question above, do I have to copy codes in css file or php files above that have been modified into the style.css file or function.php for child theme to work properly? I only know and back up the files that have been modified. So I don’t really know what codes exactly have been modified (have some ideas but, dare not to copy and paste into style.css file or function.php, or rtl.css files).
3. Why I have the two problems in 5. a) and 5. b)? I can manually un-check the option to resolve 5. a), but I have no idea what to do to resolve 5. b). I’d really like to know why it happened.
I will wait for your answers before doing further upgrade.
Thank you
April 15, 2015 at 7:30 am #428716Question 4. When I need to upgrade, do I upgrade from the child theme or the parent theme?
April 15, 2015 at 5:16 pm #429073anyone?
April 15, 2015 at 8:12 pm #429193anyone out there?
April 16, 2015 at 11:27 am #429510Hey!
I’ve never tried the plugin you are using, I think it might be better to do it manually. Please refer to the documentation here: http://kriesi.at/documentation/enfold/?s=child+theme
You can download a ready made child theme here: http://kriesi.at/documentation/enfold/downloads/
Any file you have in your child theme will override the one in the parent theme.
Best regards,
Rikard- This reply was modified 9 years, 7 months ago by Rikard.
April 16, 2015 at 5:00 pm #429742thanks for the reply, rikard.
I watch the video a few times and I have to say it’s not very clear on exactly what to modify in the style.css and function.php file. So I downloaded the plugin and didn’t have to modify anything as it already has the correct folder names. Please take a look at the screenshots below for the content of these three files if you think they are causing the problem with the menu bar.
And to clarify, I do NOT need to modify these files style.css or function.php files directly. I can simply copy and paste these files that have been modified in the parent theme to the child theme folder, they would override the files in the parent theme? So why every video I watched online says you can “modify” style.css or function.php?
Also did I copy the 5 files (with folder/subfolder structure) correctly? Please see the screenshots attached above.
Thank you for your response. I won’t upgrade until I get this child theme issue clarified.
April 17, 2015 at 7:00 am #430123Hi!
Did you try the ready made child theme? http://kriesi.at/documentation/enfold/downloads/. You shouldn’t have to do anything more than uploading and activating it for it to work.
Regards,
RikardApril 17, 2015 at 8:08 am #430146okay. I will try it.
April 17, 2015 at 7:45 pm #430566Hey!
Please try and let us know so we can mark the thread as resolved or assist you further.
Best regards,
YigitApril 17, 2015 at 7:50 pm #430568I had to go to theme option to adjust menu location management.
but after updating, the red bar on the top and also the footer socket looked different. I think the designer had made some changes. I don’t know which files though.
April 17, 2015 at 7:55 pm #430574Hey!
How different? If they made styling changes, those changes could be re-applied using custom CSS. If they made other changes, you can apply them in enfold/footer.php and enfold/includes/helper-main-menu.php files
Best regards,
YigitApril 17, 2015 at 7:59 pm #430579do you see the phone # are pushed to the 2nd row on the red header?
and on the footer socket, I tried to change the text from the enfold option in footer/copy. But didn’t matter what I texts I put, it didn’t seem to affect what’s shown on the footer socket/copyright text. I also I’d like to center the copyright text.
April 20, 2015 at 5:01 am #431070Hey!
Both the phone number and socket looks fine on my end on http://www.futuremdmentor.com/, did you manage to get it fixed? If not, could you please provide us with screenshots highlighting the issues?
Cheers!
RikardApril 20, 2015 at 5:22 am #431083yes, it’s fixed.
-
AuthorPosts
- The topic ‘Using Child Theme correctly to update to new version’ is closed to new replies.