How to set the «2columns-right» layout for the for product pages?

Hello Guys

I want to set layout 2columns-right for product page but I don’t know how to do that? Please Help me

Thanks

You need to modify Magento\Catalog\view\frontend\layout\catalog_product_view.xml

<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

you need to change with

<page layout="2columns-right" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

Then refresh cache and check it.

Thank you so much.