Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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.php

    This 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

    #428716

    Question 4. When I need to upgrade, do I upgrade from the child theme or the parent theme?

    #429073

    anyone?

    #429193

    anyone out there?

    #429510

    Hey!

    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, 8 months ago by Rikard.
    #429742

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

    http://snag.gy/yuV3B.jpg

    http://snag.gy/nSWeA.jpg

    http://snag.gy/LL5h4.jpg

    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.

    #430123

    Hi!

    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,
    Rikard

    #430146

    okay. I will try it.

    #430566

    Hey!

    Please try and let us know so we can mark the thread as resolved or assist you further.

    Best regards,
    Yigit

    #430568

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

    #430574

    Hey!

    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,
    Yigit

    #430579

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

    #431070

    Hey!

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

    #431083

    yes, it’s fixed.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Using Child Theme correctly to update to new version’ is closed to new replies.