How can I add a customized xstore-core file to the xstore child theme?

This topic has 2 replies, 2 voices, and was last updated 3 years, 4 months ago ago by Robert Hall

  • Avatar: jancaerels
    February 28, 2021 at 22:32

    I wanted to test something on the xstore-core theme, just to see if it worked.
    So I edited (very small edit) the “custom-metaboxes.php” file via FTP:
    > “themes”
    > “xstore”
    > “framework”
    > custom-metaboxes.php

    It works! Yay.

    But I know that it is not good to edit xstore core. For edits I should use the child theme right?

    My question is: How can I add the edited version of custom-metaboxes.php inside the child-theme folder so it works? Should I build the same folder structure in there and add a file with the same name in there with the edited code?

    1 Answer
    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 1, 2021 at 09:10


    The child theme offers the safest and easiest way to modify an existing theme. Yes child theme update won’t be changes your customization after parent theme update unless you update child them as well. We are also sharing theme update and child theme documentation with you for your better understanding.

  • Viewing 2 results - 1 through 2 (of 2 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.