I want to remove right side block from product page. See https://prnt.sc/r5mlfi How can i remove this? What is the name of this block?

    <referenceContainer name="content">
        <block class="Infortis\Base\Block\Product\View" name="product-view-wrapper" template="product/view.phtml" before="-">
            <container name="container_product_image_1" label="Product View, Image Column" />
            <container name="container_product_primary_1" label="Product View, Primary Column, Container 1" />
            <container name="container_product_primary_2" label="Product View, Primary Column, Container 2" />
            <container name="container_product_secondary_1" label="Product View, Secondary Column, Container 1" />
            <container name="container_product_secondary_2" label="Product View, Secondary Column, Container 2" />
            <container name="container_product_lower_primary_1" label="Product View, Lower Primary Column, Container 1" />
            <container name="container_product_lower_primary_2" label="Product View, Lower Primary Column, Container 2" />
            <container name="container_product_lower_secondary_1" label="Product View, Lower Secondary Column, Container 1" />
            <container name="container_product_lower_secondary_2" label="Product View, Lower Secondary Column, Container 2" />

            <!-- Static blocks -->
            <block class="Magento\Cms\Block\Block" name="block_product_secondary_bottom">
                    <argument name="block_id" xsi:type="string">block_product_secondary_bottom</argument>

    <!-- Insert product view blocks into the new product view wrapper -->
    <move element="product.info.main" destination="product-view-wrapper" />
    <move element="product.info.media" destination="product-view-wrapper" />
    <move element="bundle.options.container" destination="product-view-wrapper" />
    <move element="product.info.details" destination="product-view-wrapper" />
    <move element="catalog.product.related" destination="product-view-wrapper" />
    <move element="product.info.upsell" destination="product-view-wrapper" />

    <!-- Move some blocks to new positions -->
    <!-- <move element="product.info.stock.sku" destination="product.info.price" after="product.price.final" /> -->
    <!-- <move element="product.info.social" destination="product.info.main" after="-" /> -->
    <move element="product.info.overview" destination="product.info.main" before="product.info.price" />
    <move element="container_product_primary_1" destination="product.info.main" before="product.info.price" />
    <!-- <move element="container_product_primary_2" destination="product.info.main" after="-" /> -->

    <!-- Move some blocks outside the "product.info.main" to manipulate their position inside template file -->
    <move element="page.main.title" destination="product-view-wrapper" />
    <move element="product.info.review" destination="product-view-wrapper" />

    <!-- Product collateral data (tabs) -->
    <referenceBlock name="product.info.details" template="Infortis_Base::product/view/details.phtml" >
            <argument name="show_tabs" xsi:type="helper" helper="Infortis\Base\Helper\Template\Catalog\Product\View::showTabs" />
        <!-- Custom static blocks as tabs -->
        <block class="Magento\Cms\Block\Block" name="product_cms_block1" group="detailed_info">
                <argument name="block_id" xsi:type="string">block_product_tab1</argument>
                <argument name="title" xsi:type="helper" helper="Infortis\Base\Helper\Template\Catalog\Product\View::getStaticBlockTitle">
                    <param name="id">block_product_tab1</param>
        <block class="Magento\Cms\Block\Block" name="product_cms_block2" group="detailed_info">
                <argument name="block_id" xsi:type="string">block_product_tab2</argument>
                <argument name="title" xsi:type="helper" helper="Infortis\Base\Helper\Template\Catalog\Product\View::getStaticBlockTitle">
                    <param name="id">block_product_tab2</param>

    <referenceBlock name="catalog.product.related">
        <action method="setTemplate">
            <argument name="template" xsi:type="helper" helper="Infortis\Base\Helper\Template\Catalog\Product\View::getRelatedProductsTemplate" />

    <referenceBlock name="product.info.upsell">
        <action method="setTemplate">
            <argument name="template" xsi:type="helper" helper="Infortis\Base\Helper\Template\Catalog\Product\View::getUpsellProductsTemplate" />
            <!-- TODO: -->
            <!-- <argument name="is_responsive" xsi:type="string">false</argument>
            <argument name="show_items" xsi:type="string">3</argument> -->

    <referenceBlock name="checkout.cart.crosssell">
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Infortis_Base::product/list/slider.phtml</argument>


  • please add image irectly here the link your provided is broken
    – Waqar Ali
    Feb 21, 2020 at 11:03
  • add your app/design/frontend/vendor/theme/Magento_Catalog/layout/catalog_ptoduct_view.xml file code here. Feb 21, 2020 at 11:04
  • It will be your theme settings. you can find this from your admin panel theme settings > product page settings. you can remove from there Feb 21, 2020 at 11:04
  • @KishorThummar i have added in my question. Check
    – Nafsss
    Feb 21, 2020 at 11:20
  • @Nafisa are you using any purchased theme ?
    – Pawan
    Feb 21, 2020 at 11:25

2 Answers 2


Add the below line in the same file in the <body> tag.

<referenceBlock name="block_product_secondary_bottom" remove="true"/>

or you can find the "block_product_secondary_bottom" block in Admin->Content->Blocks and Disable it.

Flush the cache and check.

  • Thanx, It worked.Now how can the product page be fit to full width. I dont want this blank space . See prnt.sc/r5navo
    – Nafsss
    Feb 21, 2020 at 11:41
  • Not sure but you can try to remove these blocks like above in your XML and check. container_product_secondary_1 and container_product_secondary_2 Feb 21, 2020 at 11:54
  • Check this guide: s3.eu-central-1.amazonaws.com/elabos-files/PDF/… and find the go to page no.171 and check the Example 3 for this Feb 21, 2020 at 12:12
  • Thanx. The biggest problem is what ever configuration i am doing here is not getting reflected in my frontend. Even the css. Why so, i had to write custom css to change the button colors and all. Which is wrong. How can i resolve this first. I had made a child theme for my main infortis theme. is this the problem?
    – Nafsss
    Feb 24, 2020 at 5:42

Stores > Configurations > Advanced > Developer > Debug > Enable Template Path Hints for Storefront to Yes

and Also

Enable Hints for Storefront with URL Parameter to Yes

Enable Add Block Class Type to Hints to Yes

enter image description here

Now go to your frontend store page and at the end of the URL of page add '?templatehints=magento' and hit enter.

and you'll get the name of the Block.

and to Remove the block use below line in layout file,

<referenceBlock name="your.block.name.you.want.to.remove" remove="true"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.