We use the PayPal integration made available through the built-in Braintree support. I want to override the following template so I can change the button URL.
\vendor\magento\module-braintree\view\frontend\templates\paypal\button.phtml
I have created the following file to override this:
\app\design\frontend\Company\Theme\Magento_Braintree\view\frontend\templates\paypal\button.phtml
This has no effect though, and the old file is used. This is also demonstrated with the template hints switched on:
The first button has also been overridden, and this works as expected.
I have cleared cache, deployed static content etc.
Have I missed something? Do you have to have more than just a view to an override work?
