0

I created custom block on category page to show category title full width after menu. For that I created one xml code on local.xml of theme layout file.

<catalog_category_default>
      <reference name="content">
        <block type="catalog/category_view" name="categpry_page_info" as="topCategoriInfo"
                           template="page/category_info.phtml" before="category.products"/>
    </reference>
     </catalog_category_default>
     <catalog_category_layered>
       <reference name="content">
        <block type="core/template" name="categpry_page_info" as="topCategoriInfo"
                           template="page/category_info.phtml" before="category.products"/>
     </reference>
     </catalog_category_layered>

and created one file category_info.phtml in page folder.

Now what ever I write in in this file comes out but it stays inside container,while I want it to be full width.Is there a way to move the block immediate after the menu so it can come out of that fixed width container?

3

Use top.container instead of content as a reference.

top.container is a container within the header element, just below the top menu.

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.