Can you override third party templates in Magento?
Yes you can override the third-party extension phtml file (templates) and layout files the same as the way we override core Magento’s templates and layouts. So in your case following is the correct way to override the template and layout files. For the layout files also you will need to follow the same structure.
What does it mean to override a layout file?
Layout files with instructions that override the default or parent theme files are referred to as overriding layout files. Examples of customizations that involve overriding layouts: Suppressing method invocation.
What does it mean to override a layout in Magento?
This means that the new file that you place in the theme will be used instead of the parent theme layout file of base layout file. In this article, page layouts, page configurations, and generic layouts are referred to as layout files, as the mechanism of overriding is similar for all of them.
Where is the core template in Magento 2?
Our core module template resides in module-catalog folder so you need to create Core module folder like, Create list.phtml file and get content from core Magento Catalog template list.phtml file. For some core module name in Magento 2 has multiple words separated with the hyphen (-). 2. Using Module Level,
Is there a way to override a template file?
You can override template file using the Module level. Using New method some of the templates is still not overridden check link, Github Issue. Do not use tag, if the method implementation allows calling it using for block or referenceBlock.
How to override a layout in Magento 2?
To add an overriding base layout file (to override a base layout provided by the module): Put a layout file with the same name in the following location: These files override the following layouts: