Posts tagged: Magento Design

Change Order of Blocks - ‘before’ and ‘after’ attributes

Use 'before' and 'after' block attributes to change the order of blocks. You can set the position of a block within a structural block by assigning the name of another block to either 'before' or 'after' attribute. For example, if you'd like to put 'Product Viewed' box below 'Cart' box on the right menu, you can define the layout XML files as follows: in catalog.xml <reference name="right"> <block type="reports/product_viewed" before="cart_sidebar" name="reports.product.viewed" template="reports/product_viewed.phtml"/> ... </reference> You can define block position at the very top or bottom by using before="-" or after="-".

Magento CSS Ordered / Unordered List Style in Product Description

Depending on your theme, lists of product short description may appear without any type as in "list-style: none". This happens when the default list style is defined 'none'. Make sure you define list styles separately for product short description, category description or other areas for such styles as a disc or an image. The fix will look like this: .short-description ul li { list-style-type: disc; list-style-position: inside; } .short-description ul li { list-style-type: disc; list-style-position: inside; }

Magento - Homepage Not Using Three Column Layout

Do you see the two column layout being used for your homepage even when the three column layout is defined as the default layout in *page.xml? It's probably because the homepage is set to use the two column layout in CMS. Go to CMS -> Manage Pages. Find a page whose identifier is 'home' and click on it. Make sure the homepage that you enable uses 3 columns. You can update this by clicking Custom Design from the left menu. It's a nice feature that you can easily edit the homepage through CMS and you can assign a particular layout ...