Changing the columns on Magento's "Contact Us" page

Changing the columns on Magento's "Contact Us" page

September 22, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Changing the columns on Magento's "Contact Us" page

Customizing Magento’s “Contact Us” Page Layout

As a senior developer working with Magento platforms, I often receive queries about customizing built-in CMS pages like the “Contact Us” section. By default, this page doesn’t appear in the list of CMS pages within the Admin panel. However, there are several ways to access and modify its layout settings without needing to override core files through XML.

Understanding the Contact Page Structure

The “Contact Us” page in Magento is a special case because it’s not managed like typical CMS pages but rather as a block under the cms_index_index controller. This is why you won’t find it listed in the Admin panel’s Content > Pages section.

To access and modify this page, we need to understand that its content comes from two sources:

  1. The Contact Form HTML: Located at app/design/frontend/your_package/your_theme/template/cms/contact.phtml. This file contains the actual form fields for Name, Email, etc.
  2. The contact us block: The contact_us block is defined in app/code/core/Mage/Cms/etc/config.xml, which pulls content from the CMS page with the identifier ‘contact_us_form’.

Changing Column Settings via Layout XML

While core files are marked as protected and should not be overridden directly, we can achieve layout modifications through the XML layout updates feature.

  1. Create a custom layout update file: Navigate to app/design/frontend/your_package/your_theme/layout. If it doesn’t exist, create this folder structure.
  2. Create a new file named local.xml (make sure to name it correctly with the right case sensitivity).
  3. Add the following content:
<layout version="0.1.0">
  <default>
    <reference name="contact_us_block">
      <action method="setTemplate">
        <template>your_package/your_theme/template/cms/contact_form.phtml</template>
      </action>
    </reference>
  </default>
</layout>

Replace your_package and your_theme with your actual package and theme names.

Modifying the Form HTML

Now, create or update the contact_form.phtml file in app/design/frontend/your_package/your_theme/template/cms.

Here you can change the column settings by modifying the HTML structure of the form. For example:

<form action="<?php echo $this->getFormAction(); ?>" id="contact-us-form" method="post">
    <div class="columns">
        <div class="column">
            <input type="text" name="name" placeholder="Your Name*" class="required-entry input-text" />
        </div>
        <div class="column">
            <input type="email" name="email" placeholder="Email Address*" class="required-entry validate-email input-text" />
        </div>
    </div>
</form>

In this example, I’ve used a columns div with two child column divs to create a layout with two columns. You can adjust the number of fields and their sizes by adding or removing these divs.

Flushing Cache

After making changes in the XML layout or HTML files, remember to flush your Magento cache from the Admin panel (System > Cache Management) for the updates to take effect.

Conclusion

Customizing the “Contact Us” page layout in Magento requires a bit of knowledge about the platform’s structure. By using the layout update feature and modifying the form HTML, we can achieve column customizations without directly overriding core files.

Always ensure you’re working in your theme’s child directory (not the actual core files) to avoid conflicts during upgrades. If your changes are complex or require significant customization, consider reaching out to professionals at Laravel Company, where we specialize in Magento development and offer expert solutions for these kinds of challenges.

Remember that while this method works well for simple layout changes, more advanced modifications may still require deeper core customizations or the use of extensions. Always back up your files before making significant changes to protect against potential issues.

Themes Admin Configuration Email

Our network