Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Does not load from child theme #6

Open
akshatatorvi opened this issue Jul 27, 2020 · 1 comment
Open

Template Does not load from child theme #6

akshatatorvi opened this issue Jul 27, 2020 · 1 comment

Comments

@akshatatorvi
Copy link

akshatatorvi commented Jul 27, 2020

I have Child theme, in that I am trying to override wpadverts plugin template into my child theme.
I have created the wpadverts/list-item.php file into my child theme.
but this plugin does not check template file is exists in child theme.
For that, I have added one line code into a plugin file.
// next check in Child theme directory
$dirs[] = get_stylesheet_directory() . "/wpadverts/";

then it started working

@gwin
Copy link
Collaborator

gwin commented Jul 30, 2020

Hi,
thanks for the feedback, you are correct the snippet does not check the child templates folder, this will be fixed in an update soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants