cancel
Showing results for 
Search instead for 
Did you mean: 

How to overwrite template (multiple hyphens)

How to overwrite template (multiple hyphens)

Hi

 

I would like to overwrite a template file:

vendor/mageplaza/magento-2-product-slider/view/frontend/templates/productslider.phtml

 

In our own theme.

 

How do you name the folders?

 

I've tried

 

app/design/frontend/Vendor/Theme/Mageplaza_Magento_2ProductSlider/templates/productslider.phtml

 

app/design/frontend/Vendor/Theme/Mageplaza_Magento_2_Product_Slider/templates/productslider.phtml

 

with no luck.

 

.

1 REPLY 1

Re: How to overwrite template (multiple hyphens)

Hello, @tvgarden  try with below way.

 

Copy file from below path.

app/code/Mageplaza/Productslider/view/frontend/templates/

And past in below path.

app/design/frontend/Vendor/Theme/Mageplaza_Productslider/templates/

 

Run command php bin/magento c:c And php bin/magento c:f

 

I hope it works!

If Issue Solved, Click Kudos/Accept As solutions.