I believe these are the common filters to use when overriding a template
The works but it seem that they are theme depended. I am using a theme called
hello elementor from WordPress it is calling
index.php as a blog archive template. So i tried to override that with
archive_template but it does not work. I tried
template_include which works but it overrides other templates of single and page templates also.
If the theme had archive.php I belive
archive_template would have worked. So what’s the method I should go for to make it work with all themes?
Read more here:: Overriding the template files using a plugin for all themes