Skip to content

How to override carousel.phtml file in Magento 2 custom theme

I want to override below Page builder Carousel phtml file in my custom theme. Please provide magento standard way for this.

vendor/magento/module-page-builder/view/frontend/templates/catalog/product/widget/content/carousel.phtml

I have already placed this file in custom theme but it’s not working.

FYI, After executing the grep command for the above file & found the below reference core files but could not get the exact idea of how to override the above carousel.phtml file.

grep -r 'carousel.phtml' vendor/
vendor/magento/module-page-builder/view/adminhtml/web/ts/js/content-type/products/mass-converter/carousel-widget-directive.ts:            template: "Magento_PageBuilder::catalog/product/widget/content/carousel.phtml",
vendor/magento/module-page-builder/view/adminhtml/web/js/content-type/products/mass-converter/carousel-widget-directive.js:        template: "Magento_PageBuilder::catalog/product/widget/content/carousel.phtml",