troubleshooting Question

Trouble working with Magento layout files to customize a theme...???

Avatar of Andrew Angell
Andrew AngellFlag for United States of America asked on
PHPE-Commerce
6 Comments2 Solutions370 ViewsLast Modified:
I'm new to Magento and I'm trying to get a handle on working with layout files to customize the appearance of a page/theme.  

I'm currently working on http://magento.developersandbox.net, which is a clean install of 1.5.1 including sample data, and I've applied the Modern theme instead of the default one.

For practice, I'm simply trying to move the Popular Tags block from the left sidebar over to the right sidebar.  I turned on the template hints and it shows the following for the Popular Tags block:  frontend/base/default/template/tag/popular.phtml.

Based on what I've learned so far that tells me I need to working with the Tag module and layout file.  

As such, I opened up frontend/base/default/layout/tax.xml.  I can see the following chunk of XML that seems to be placing the block for me:

    <default>
        <!-- Mage_Tag -->
        <reference name="left">
            <block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>
        </reference>

    </default>

When I change reference name to "right", though, and then clear my Magento cache and reload the page, nothing changes.  The block still remains on the left side.

So then I think, ok, maybe I need to do this in my Modern theme since that's what I'm actually using.  So I change the original tag.xml back to the way it was (with reference left) and I opened up frontend/default/modern/layout/tag.xml.  I change this one to reference, right, and now it does indeed add the Popular Tags block to the right side, but it also leaves it on the left side so now I have it both places.

I can't seem to get a handle on this, but I feel like I'm close.  Any information on what I'm missing would be greatly appreciated.  Thanks!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros