Magento 1.7.0.2 - Display Image Category above 2 columns left page

Magento 1.7.0.2 - Display Image Category above 2 columns left page

September 14, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento 1.7.0.2 - Display Image Category above 2 columns left page

Displaying Category Image Above Two-Column Layout in Magento

Understanding Your Current Setup

You’ve configured your category page layout as two columns with a left sidebar in Magento 1.7.0.2. This is a common setup that allows you to display products and additional content side-by-side.

The issue arises when you try to set the category image. By default, Magento positions it within the main content area of the first column only. This isn’t ideal if you want the image to span both columns or appear above them.

The Problem with Current Configuration

When the category_image attribute is set, Magento’s core layout file (app/design/frontend/base/default/layout/catalog.xml) defines it within the main content area of the first column:

<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
    <action method="setProductListTemplate"><argument name="template">catalog/product/list.phtml</argument></action>
    <block type="core/multiCall" name="category.product.list">
        <actions>
            <block type="page/html_wrapper" as="before" translates="label">
                <action method="setElementClass"><value>no-display</value></action>
                <block type="catalog/category_image" template="catalog/category/view/image.phtml"/>
            </block>
            <!-- Other blocks here -->
        </actions>
    </block>
</block>

The category_product_list block includes the category image, which is wrapped within a <div class="no-display"> element by default. This hides it from view.

Modifying the Layout

Step 1: Remove the Hidden Class

To display the category image, you need to remove or override the hidden class that’s currently applied to its container. You can do this via local.xml in your theme:

<layout version="0.1.0">
    <catalog_category_view>
        <reference name="category.product.list">
            <action method=" unsetChild"><name>before</name></action>
        </reference>
    </catalog_category_view>
</layout>

This code removes the before child block from the category product list, effectively exposing the category image.

Step 2: Repositioning the Image

To move the image above both columns, you can use CSS. In your theme’s stylesheet (usually located at skin/frontend/default/yourtheme/css/styles.css), add:

.category-image {
    margin-bottom: -15px;
}

This negative margin moves the image up slightly to allow it to span across both columns.

Conclusion

Displaying a category image above two columns in Magento 1.7.0.2 requires a combination of layout manipulation and CSS styling. By removing the hidden class applied to the image container and using negative margins, you can achieve your desired result.

Remember, always backup your files before making changes to the core codebase or theme. If you’re not comfortable with editing the XML directly, consider using the “Layout Update” feature in the Magento admin panel under System > Layout.

For more advanced customizations, I recommend checking out Laravel Company’s guide on Magento theme development. They provide a comprehensive walkthrough of the process.

With these steps, your category image should now appear above both columns on your product page.

Magento 1 Catalog Themes Configuration

Our network