1

How can I rearrange the blocks on the sidebar? Where can I edit it? Currently the tag block is on the bottom most part of the sidebar. I want to move it up. How am I suppose to do it?

Current Left Sidebar of my Category Page

4
  • Currently the tag block is on the bottom most part of the sidebar. I want to move it up. How am I suppose to do it?
    – Alen
    Commented Nov 25, 2015 at 5:20
  • Please add more details about your problem so that others can understand. Otherwise, the question might get closed. More info : magento.stackexchange.com/help/how-to-ask
    – Prateek
    Commented Nov 25, 2015 at 7:46
  • What Magento version are you using? Are you using a custom theme or a Magento default one? Which theme are you using? Did you make any custom changes, if yes, which changes?
    – 7ochem
    Commented Nov 25, 2015 at 8:44
  • @7ochem it is ok now. the problem is solved.
    – Alen
    Commented Nov 26, 2015 at 1:05

2 Answers 2

0

go to app/design/fronted/base(or your theme contain file)/default/layout/tag.xml on line 38

change

<block type="tag/popular"  name="tags_popular" template="tag/popular.phtml"/>

to

<block type="tag/popular" before="currency" name="tags_popular" template="tag/popular.phtml"/>
7
  • I did change it on the base theme but it is not working
    – Alen
    Commented Nov 25, 2015 at 7:17
  • check in your current theme.. Commented Nov 25, 2015 at 7:29
  • Doesn't have the tag.xml
    – Alen
    Commented Nov 25, 2015 at 7:33
  • try to refresh the cache from admin panel. Commented Nov 25, 2015 at 7:33
  • 1
    I don't know what happened but it is working now... your first code was working... maybe because of the cache or something. Thanks Again.
    – Alen
    Commented Nov 26, 2015 at 0:58
2

Use in this way to your local.xml

<reference name="left">
    <block type="core/template" before="-" name="name_of_the_block" template="template_path"/>
</reference>

To display as the First block:

before="-"

To display as the last block:

after="-"

To display before any other block:

 before="block_name"

To display after any other block:

after="block_name"
8
  • Sorry but I am really new to magento. Where can I find the local.xml?
    – Alen
    Commented Nov 25, 2015 at 5:22
  • you are using custom theme
    – Magento 2
    Commented Nov 25, 2015 at 5:23
  • yes, I am using a custom theme @Kothari
    – Alen
    Commented Nov 25, 2015 at 5:24
  • Check app/design/frontend/package/customtheme/layout/local.xml
    – Magento 2
    Commented Nov 25, 2015 at 5:27
  • It doesn't have a local.xml
    – Alen
    Commented Nov 25, 2015 at 5:29

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.