• Hi,

    Trying to understand this whole parent-child theme relationship and hoping someone can set me clear on this.

    A specific example I have is that, I need to modify a file within the parent theme that exists within the directory “parent_theme/includes/widgets” – does this mean that I need to create this same directory structure within my child theme directory, i.e. “child_theme/includes/widgets” and then place the file I want to update here?

    If you could please get back to me on the above, that would be great.

    Thanks.
    SP.

Viewing 4 replies - 1 through 4 (of 4 total)
  • What theme are you using and what are you trying to change? That’s not a file that is normally edited.

    Thread Starter softprinciples

    (@softprinciples)

    I am using the Beauty and Clean WordPress theme which has a files called “contact-info.php” within this “parent_theme/includes/widgets”

    Is this not the norm, i.e. you typically wouldn’t be changing these types of files at 2 levels down?

    What happens if you do, like I have to with this theme?

    Thanks.

    No, generally widget text can be changed in the dashboard.

    Is this the theme?

    https://www.yourinspirationweb.com/en/beauty-and-clean-a-free-minimal-wordpress-theme/

    It looks like there is lots of information there as to how to use the theme.

    Thread Starter softprinciples

    (@softprinciples)

    Yes WPyogi – that is the correct link.

    Using the theme is fine but I needed to change the “Contact” page and add an email component to the right sidebar.

    Worked out that this info was in the above directory I mentioned and within the file “contact-info.php” and so edited this php file directly.

    The problem now is that, I would’ve have like to get this changed file into my child theme but looks like I can’t and so, any time there is an update to this theme, I will lose this changed file.

    Any ideas apart from backing up this file prior to update and then re-instating it?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parent Child Theme File Relationships/Overrides’ is closed to new replies.