2

I want to completely remove the div col-right sidebar from the default magento 1.9 theme.

I've tried creating a local.xml file containing:

<?xml version="1.0"?>
<layout version="0.1.0">
 <default>
 <remove name="catalog.compare.sidebar" />
 </default>
</layout>

But this only removes the content of the div. I want to completely remove it from the html code so the page can contain more products on a single page.

Now:

enter image description here

Goal:

enter image description here

What should I try next?

asked Sep 15, 2014 at 22:32
6
  • What does this element have to do with the number of search results? It sounds to me like you want to remove something when a simple CSS change is all you need. Commented Sep 15, 2014 at 22:42
  • Removing the sidebar > more page space > change products-grid products-grid--max-4-col first last odd to products-grid products-grid--max-6-col first last odd = more products on a single page. I need col-right sidebar to be gone. Commented Sep 15, 2014 at 22:43
  • Are users not allowed to scroll down the page if there are more results than will fit on the screen? Commented Sep 15, 2014 at 22:45
  • Why would I want them to scroll down to view more products if I can remove unnecessary space like col-right sidebar so more products fit on a single page? That doesn't make any sense UX wise. Commented Sep 15, 2014 at 22:52
  • 1
    If that's all you want, see: stackoverflow.com/questions/12190678/… -- Otherwise it sounds like all you need is a CSS adjustment. Commented Sep 15, 2014 at 22:54

2 Answers 2

4

You have to change the root template for <catalog_category_default> and <catalog_category_layered> inside your local.xml

i.e.

<catalog_category_default>
 <reference name="root">
 <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
 </reference>
</catalog_category_default>

Notice page/2columns-left.phtml. The template you are using is page/3columns.phtml

Take a look inside app/design/frontend/base/default/template/page/ for default layout templates that come with Magento.

answered Sep 15, 2014 at 22:57
1
  • It is better to edit the catalog.xml in this case, so you can set the correct template where it was intended to be defined - IMO Commented Sep 3, 2015 at 12:14
3

app\design\frontend\rwd\default\layout\page.xml

line 33-35 change to:

<default translate="label" module="page">
 <label>All Pages</label>
 <block type="page/html" name="root" output="toHtml" template="page/2columns-left.phtml">
answered May 14, 2015 at 8:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.