Changing Layout of Product Options in Magento

Changing Layout of Product Options in Magento

August 14, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Changing Layout of Product Options in Magento

Changing Layout of Product Options in Magento

Hello Brett,

Thank you for reaching out about customizing your Magento theme. Moving the product options box is quite straightforward once you understand where to look in the template files.

Locating the Product Options Template

The product options box is rendered by a file located under app/design/frontend/<vendor>/<theme-name>/template/catalog/product/view/type/configurable.phtml.

For your specific theme, Bluescale, this would be located at:

app/design/frontend/Smartwave/bluescale/Magento_Catalog/templates/product/view/type/configurable.phtml

This file contains the HTML structure and PHP code that generates the options box for configurable products. You can open it in a text editor to modify its content.

Moving the Product Options Box

To move the product options from beneath the title, look for this line in the configurable.phtml file:

<?php echo $this->getChildHtml('product_attributes') ?>

This calls a child block named ‘product_attributes’, which contains the option box. To move it under the title, you need to relocate this line.

Find the <h1> tag for the product name in your theme’s catalog/product/view.phtml file (usually located at app/design/frontend/<vendor>/<theme-name>/template/catalog/product/view.phtml). Add the PHP line immediately after that tag:

<h1 class="page-title"><?php echo $this->getProduct()->getName() ?></h1>
<?php echo $this->getChildHtml('product_attributes') ?>

Save both files and refresh your product page. You should now see the options box moved beneath the title.

The “add to wishlist”, “compare”, and “ask a question” links below the add-to-cart button are rendered by the catalog.product.view block’s child blocks in the layout.xml file.

To remove these, open your custom theme’s app/design/frontend/Smartwave/bluescale/Magento_Catalog/layout/catalog_product_view.xml and find the following lines:

<block type="wishlist/customerproducts" name="wishlist_products_links" as="wishlist-products-links"/>
<block type="catalog/product_compare_link" name="catalog.product.compare" template="catalog/product/compare/link.phtml"/>

Comment out these lines to remove the corresponding links from your page.

Best Practices

When modifying theme files, always make a backup of the originals before editing. This ensures you can revert changes if needed.

For complex customizations like this one, consider using a child theme or a custom theme extension rather than directly modifying core files. This makes it easier to update Magento and preserve your modifications.

Conclusion

In summary, changing the layout of product options in Magento involves locating the correct template file and making specific PHP and XML changes. By following these steps and understanding where to look in the theme structure, you can achieve the desired customization without losing updates or breaking functionality.

Remember that Magento theme development requires a good understanding of both HTML/PHP and XML/block layout. If you encounter any further issues or need assistance with other customizations, feel free to reach out!

Happy coding!

[Your Name] [Your Position]

Catalog Themes Configuration

Our network