I've been trying to get into wordpress plugin development but I still haven't figured out how to customize just one part of the template, I've seen the single-{post-type}.php method, but this changes the whole template altogether.
Another method I've seen is short codes, but they become the content as in they are put inside the content container that I'd want to change itself but I want to change the parent.
I guess the most simple way I can exaplain this is that I want to change content.php of a theme for certain post types from a plugin
So let's say that I'm creating a plugin that is going to display a list of items that it's going to get from the database and I need to change only the way it's displayed inside content, what would I do?