2

I need to display related products below the description(bottom of the page) but in theme it is coming right side of the page(we are using Porto theme). Could anyone please tell me how to display related products bottom of the page ?

For reference please find the attached image.

enter image description here Any help will be appreciated. Thanks in advance.

  • Have you resolved your query? – Muhammad Hasham Nov 4 '19 at 9:42
  • Yes problem has been solved – somutesting Nov 5 '19 at 8:03
1

If you are using other theme or your custom theme, you could customize the related products position by layout file.

In the directory app\design\frontend\Vendor\Your_theme_name\Magento_Catalog\layout\, create the file catalog_product_view.xml, in it write the codes like below, then related products will show in bottom part of product view page.

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="catalog.product.related" destination="block-name-where-you-want-to-place-it" />
    </body>
</page>

In the <move>, you could add after | before attribute to assign the element's position relative to siblings. If the attribute is omitted, the element is placed after all siblings.

I hope this will help

| improve this answer | |
  • 1
    I think this will help. – Chirag Parmar Nov 1 '19 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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