Changes in child theme not working?! - by Sheine

This topic has 4 replies, 2 voices, and was last updated 5 years, 6 months ago ago by Rose Tyler

  • Avatar: Sheine
    Sheine
    Participant
    October 15, 2018 at 19:03

    Hello 8theme,

    I am asking this question for my self, but i think it will help dozens of other users of your themes. I have browsed your forums for an answer, but have not found the correct answer yet.
    Changes in any .php files should not be made in the parent theme but in the child theme. However I cannot find the proper documentation from your side how i should go to work.

    Normally i would just copy (i.e. the cart.php file) to the child theme folder and make my changes in the child theme .php file. This does not work.

    I have also read that the code should be added in the child themes functions.php, but i do not get this to work as well..

    I am trying to make edits to the cart.php since some text like Remove, Quantity, Price, Update cart to Dutch translations. these words do not show up in the Loco translate plugin.

    Please tell me in a few steps what i should do to make changes in the .php files using the Xstore theme. I will have to make a lot of more edits, so please explain the steps to make changes to the php files in the child theme. I dont need just help for this particular problem but in general.

    Thanks in advance.

    Kind regards,

    Sven

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 16, 2018 at 13:27

    Hello,

    Thanks for contacting us.

    If you face a problem with translation, you need to be sure that your translation files are synchronized. After synchronization, you will be able to find and translate the required strings. Make sure you placed translation files into the /wp-content/languages/themes/ folder with correct names (language name and xstore theme suffix, e.g xstore-nl_NL.po, xstore-nl_ML.mo). Button Sync (Loco Translate plugin http://prntscr.com/glemdq) allows you to synchronize your translation file with updated pot file. It means if we made any changes in template files that may affect transaltion or we added new string for the translation and you updated theme you need to synchronize your translation with updated files. Only after synchronization, you’ll be able to translate new strings or strings that were changed. Read more – https://xstore.helpscoutdocs.com/article/30-base-theme-translation

    Please read this article – https://codex.wordpress.org/Child_Themes
    If you want to make changes in cart.php (wp-content/themes/xstore/woocommerce/cart) you need to copy the file into child-theme/woocommerce/cart folder.
    If you want to change function, for example, etheme_sign_link (wp-content/themes/xstore/framework/theme-functions.php), you need to copy the function into functions.php file of the child theme.

    Feel free to ask if you have any other questions.

    Regards

    Avatar: Sheine
    Sheine
    Participant
    October 17, 2018 at 08:03

    Dear Rose,

    thanks for your reply.
    I have made the needed cart translations and they were saved succesfull.
    However, i also made some translations in the NL Woocommerce translation file via Loco Translate.

    When i hit Save i get the following error: Error: 413 Request Entity Too Large. Check console output for debugging information

    How can i fix this and save my file?

    Kind regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 17, 2018 at 08:15

    Hello,

    You’re welcome!
    Please read this article – https://localise.biz/wordpress/plugin/faqs/postdata-limit
    You can contact your hosting provider and ask about help.

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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