0

trying to make a very simple change to the category page. Before 1.9.2.3 all I had to do was go into local.xml and add:

<catalog_category_default>
    <reference name="root">
        <action method="setTemplate">
            <template>path/to/template.phtml</template>
        </action>
    </reference>
</catalog_category_default>

I've tried doing the same thing in my local.xml but no change has occured. I then tried in my theme.xml specified xml file and again nothing. I'm not sure why it isn't updating. Here's my current file:

<?xml version="1.0"?>
<layout>
    <default>
        <reference name="root">
            <action method="setTemplate">
                <template>page/customCategory2col.phtml</template>
            </action>
        </reference>
    </default>
</layout>

my folder structure:

app / design / frontend / lexel / coffeehit / layout / local.xml

I'm not sure what the cause is... I think it's something to do with the new inheritance setup. However, it just doesn't apply the layout change.. I've tried creating a module that uses local.xml to apply updates - nothing. I'm not sure where to even begin to find out how to go about this.. anyone know what to do?

Thanks

0

Instead of using catalog_category_default generic reference, use catalog_category_view (or catalog_category_layered, if you use layered navigation)

Apply that changes in your theme layout catalog.xml file

app/design/frontend/lexel/coffeehit/layout/catalog.xml

If it does not exist, copy/paste there catalog.xml base/default file, and then apply the changes in your theme's file

  • I tried that and it still hadn't made a difference :( – 123TFO Mar 16 '16 at 14:16
  • In your theme folder catalog.xml file? – Raul Sanchez Mar 16 '16 at 14:21
  • no, I use local.xml – 123TFO Mar 16 '16 at 14:29
  • Copy catalog.xml base/default file, and paste it in your layout theme folder. Then make changes in that file – Raul Sanchez Mar 16 '16 at 14:32
  • tried and still nothing - I think it gets called correctly but then is overriden by the parent themes – 123TFO Mar 16 '16 at 14:46

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.