Child theme 2 - by Orna Ohayon - on WordPress WooCommerce support

This topic has 18 replies, 4 voices, and was last updated 7 years, 10 months ago ago by Rose Tyler

  • Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 5, 2017 at 09:41

    Hi,

    I have more Question for this issue,
    I’m so afraid that I’m going to destroyed all my site…

    I made the files Custom.css | Functions.php | style.css to ad to the child theme folder
    Do I need to copy to this folder all PHP files?

    Are there any other files I should copy?

    Regard,
    Orna

    17 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 5, 2017 at 10:00

    Hello,

    Please read about the child theme
    https://codex.wordpress.org/Child_Themes
    When you edit some files in the parent theme and don’t want to lose modifications after theme update you should copy the edited file to the same file structure in the child theme.
    Also if you use child theme you need make style changes in style.css of the child theme, you should write only the code for the element you want to modify and don’t copy whole parent style.css.
    Besides we always recommend to create backup before each update and modify theme files in the child theme.

    Regards,
    Rose Tyler.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 5, 2017 at 10:47

    Hi
    Thanks for the quick answer (:

    How can I know were exactly start my special code for the element I want to modify in style.css?
    I’m working on my site over then year (:

    Regard,
    Orna

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 5, 2017 at 14:06

    Hello,

    Your changes won’t be lost if you modify custom.css file only and not original style.css. If you’re using custom.css of the parent theme, that’s fine. Custom CSS file is used to overwrite original css styles. It’s not recommended to edit original style.css.
    You can make changes either in custom.css file or in child style.css.
    Only if you made changes in template files instead of child theme then these changes will be lost. That’s why we always recommend to use child theme for all the types of customization.

    Regards,
    Rose Tyler.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 9, 2017 at 09:26

    Hi,
    I change by FTP the child exactly as appears on https://codex.wordpress.org/Child_Themes
    and it look O.K. but there are some issue that are not perfect:

    can not see really well
    Product page:
    1. See other products not seen on the page product.
    https://snag.gy/IgokH9.jpg
    https://snag.gy/MXZS4W.jpg looks now

    2. RTL – Product Page
    Originally visibility – https://snag.gy/vkIUyH.jpg
    On Child: buttons, price, quantity, icons of social networks have moved to the left
    https://snag.gy/MDKx4j.jpg

    Homepage:
    1. FEATURED POST: The newsletter disappears and instead appears menu of categories, brands, Recent Posts, archive …
    In child – https://snag.gy/7ATtXq.jpg
    Originally visibility – https://snag.gy/7h9duG.jpg

    2. Footer – completely changed
    In child – https://snag.gy/pziZnC.jpg
    Originally visibility – https://snag.gy/7h9duG.jpg

    3. Pages, blog and posts – a problem whit RTL view
    The store’s pages must display properly
    In child – https://snag.gy/glHjix.jpg | https://snag.gy/gr4l5J.jpg | https://snag.gy/yBJp62.jpg | https://snag.gy/qr2Ci7.jpg seems Btziild
    Originally visibility – https://snag.gy/Ld7pBM.jpg

    4. Header – word wishlist and heart icon jumped slightly up
    https://snag.gy/HM0YIh.jpg

    I’ll be grateful to know what I need To add to child folder that it will work perfect

    Regard,
    Orna

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 10, 2017 at 17:17

    Hello,

    1./2. I’ve enabled child theme and don’t see the issue you described. Please clear browser cache and check again.

    Home Page:
    1. When using child theme you need re-add your widgets in Appearance > Themes.

    2. I’ve disabled demo footer in Theme Options > Footer. Please check now.

    3. Add this code in child style.css:

    .rtl .sidebar {
        float: left !important;
    }

    4. Remove this code in your custom.css file:

    .top-bar .wishlist-link {
        margin-top: -4px;
    }

    Best regards,
    Jack Richardson.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 10, 2017 at 17:39

    Hi Jake,

    Thanks for your help, I appreciate it (:

    1. I steel see that the newsletter is missing and see instead the right menu
    https://snag.gy/Hg3pJC.jpg

    4. Is o.k. now so I didn’t remove the cod

    Regard,
    Orna

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 11, 2017 at 08:09

    Hello,

    You need check Appearance > Widgets > Newsletter http://prntscr.com/du51zj

    Regards,
    Rose Tyler.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 11, 2017 at 08:47

    Hi,

    thing that changed:
    1. Where do I delete the EN DE ES FR option?
    But I like that it will be in the template for the futures

    2. Newsletter sidebar on home page is missing
    you help me with it before : https://www.8theme.com/topic/home-page-4/
    and it was perfect: https://snag.gy/cmFeYr.jpg

    3. In Product page the discreption was under the price button
    https://snag.gy/UdyTL6.jpg

    What do I need to add that all will be back in place as it was?

    Regard,
    Orna

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 11, 2017 at 18:05

    Hello,

    1. You need add empty Text widget in Appearance > Widgets > Place in header top bar area.

    2. The widget was missing in Appearance > Widgets > Newsletter area. I’ve re-added it. Please check the page now.

    3. I’ve added this code in child functions.php file:

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 21 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 31 );

    Now description is under the Add to Cart on single product pages.
    Please check.

    Best regards,
    Jack Richardson.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 11, 2017 at 23:28

    Hi,

    1. look grate, thanks.

    2. The widget was missing in Appearance > Widgets > Newsletter area. I’ve re-added it. Please check the page now. – I don’t see any changes not on the site and not on the Widgets aria.

    3. I don’t see any changes.

    Best regards,
    Orna

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 12, 2017 at 17:53

    Hello,

    Now I can’t access your WP admin panel because of this notice – “Blocked because of IPS attack”.
    2. Go to Appearance > Widgets and add Mailchimp – Subsribe Form widget to your “Newsletter” area.

    3. Add this code in functions.php file in your child theme:

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 21 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 31 );

    Best regards,
    Jack Richardson.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 14, 2017 at 18:49

    Hi,

    2. thanks it’s working

    3. I see that the code in functions.php file in my child theme is sexist
    but it’s not working on the site.
    What I need to do?

    Regard,
    Orna

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 16, 2017 at 13:01

    Hello,

    3. I’ve removed the code due to other request in your other topic.

    Best regards,
    Jack Richardson.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 16, 2017 at 15:51

    Hi,
    I found the problem.

    the element on single product page sidebar efect on the visibility of the page.

    when I remove the tags and the brands
    the description area got up.

    Regard,
    Orna

    Avatar: Eva
    Eva Kemp
    Support staff
    January 17, 2017 at 14:54

    Hello,

    So is your problem resolved?

    Regards,
    Eva Kemp.

    Avatar: Orna Ohayon
    Orna Ohayon
    Participant
    January 17, 2017 at 16:31

    Yes, thanks (:

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 17, 2017 at 16:43

    Hello,

    You’re welcome!
    Glad to hear you resolved the issue.

    Regards,
    Rose Tyler.

  • Viewing 18 results - 1 through 18 (of 18 total)

The issue related to '‘Child theme 2’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.