Files in framework folder - by americanpatriot

Solved3 replies2 participantsUpdated by Eva Kemp

  • Avatar: americanpatriot
    americanpatriot
    Participant

    Why on earth did you guys place standard files in the framework directory that cannot be edited and placed in a child theme? For example, I’d like to change the text in the mini-cart to say something other than “No products in the cart.” but rather than finding the code to change in royal/woocommerce/cart/mini-cart.php you guys have placed it in royal/framework/woo.php. I can change the text from there but when the theme is updated there’s a chance it will be overwritten and I’ll have to go back and change it again.

    From my understanding only templates files can be overridden in a child theme and the files located in the framework folder are not template files.

    Is there a way I can place it in my child theme so the changes won’t be lost in an update?

    If you need login information it’s in the private content.

    AP

    Please, contact administrator
    for this information.

    3 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Please read this article http://codex.wordpress.org/Child_Themes > “Referencing / Including Files in Your Child Theme” paragraph. There you’ll find how to add files from subfolders.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: americanpatriot
    americanpatriot
    Participant

    Hmmmm…..I’m not a php programmer and reading and understanding what that paragraph said was like reading a foreign language for me but I’ll try and figure it out.

    Thanks!

    AP

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

The issue related to '‘Files in framework folder’' has been successfully resolved, and the topic is now closed for further responses