1

I have parent theme that has some plugins in it, those plugins are added as a dependency.

In the child theme, I want to override some of the files that belong to those plugins, but it looks like that isn't working.

Is this possible at all?

1
1

I have parent theme that has some plugins in it, those plugins are added as a dependency.

You shouldn't be bundling plugins in themes

In the child theme, I want to override some of the files that belong to those plugins, but it looks like that isn't working.

Child themes let you override templates, these are not templates, and use require/include to load.

Is this possible at all?

No

Modifying plugins involves either forking them or extending them via actions and filters. As a result, replacing a plugin file in the way you propose is bad practice. Doing it via a child theme is even worse, but luckily that is not possible.

Use actions/hooks/filters instead

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.