I use the Avada theme, and I have created a child theme (Customweb) for it.
I tried to override the file:
And I try create that file in at:
But it doesn’t work.
Thank you for your help.
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
Child themes let you override templates loaded via WordPress’ template loading mechanism, e.g.
get_template_part or the main theme templates such as
But they can’t be used to replace arbitrary PHP files or assets.
If a theme loads a template file using
include, WordPress cannot intercept this and replace it with a child theme version.
If this is the case, then you will need to find an alternative method to achieve your goal. Check with the themes documentation, the author may have provided a method to do this, such as an option or filter, or you may need to fork the theme.