How to remove right sidebar in magento 1.9 - magento

I installed magento 1.9.
After installed widget and slieshow, my page look like this,
Here i want to remove recently viewed products and compare products.
So i removed in app/design/frontend/modern/layout/catalog.xml ,(these lines i removed)
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
But still stays sidebar.
can anyone help me?

go to magento admin click on cms home page , click on design now select layout 1 column now save and refresh page

To remove from Home Page to to Admin panel CMS/PAGES/Home Page then go to Design Tab there the first option is Layout. Change it to 1 column. SO it will change the layout of (only )Home Page to one column without left and right.

<div class="MagicSlideshow" data-options="width: 400px; height:187px;">
use this code

I just had this same problem, and was able to remove the compare block using xml.
In my situation, I did not want change to a 1-column layout because of what I've already done with the right-col layout.
Solution:
Copy "catalog.xml" from /app/design/frontend/base/default/layout or /app/design/frontend/rwd/default/layout if you're using the new rwd theme.
Go to line 55 and remove or comment out the entire <reference name="right"> block:
<reference name="right">
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<!--<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">-->
<!--<action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>-->
<!--<action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>-->
<!--</block>-->
</reference>
Go to line 178 (for rwd_default) or 165 (for base_default) and remove or comment out the <customer_account_index> block of code:
<customer_account_index>
<reference name="right">
<action method="unsetChild"><name>catalog.compare.sidebar</name></action>
</reference>
Save the file into your custom theme layout folder as "catalog.xml".

You can unset the compare side bar in the layout file of your theme. I added a new file in
/app/design/frontend/myTheme/layout/local.xml
where I unset the compare side bar using:
<?xml version="1.0" encoding="UTF-8"?>
<layout>
<default>
<action method="unsetChild"><name>catalog.compare.sidebar</name></action>
</default>
</layout>
Don't edit the default files as they will get overwritten on update.

Related

how to display a text on right using magento

I have written a code that displays a text hello world on right of the magento homepage, but however when I browse to other links like My Account, My WishList etc., it disappears. My question is how will I be able to display Hello World in every pages using reference name="right"?
<default>
<reference name="right">
<block type="core/template" name="catalog.helloworld" template="catalog/helloworld.phtml" />
</reference>
</default>
It works when I write reference name = "content".
The text is displayed where the block "right" is present, you can search your project for <remove name="right"/> and find where right block has been removed for the pages (my wishlist, myaccount, etc..)
Now you can enable this block by removing these tags, or (recommended) you can create your own block and add it to layout/page.xml

Adding a block to magento category page using local.xml

Before posting this, i have looked in to the following, but all of them did not helped me and i was not able to add the block.
magento - adding and positioning a block using local.xml
Magento - Add phtml file to layout block
Magento 1.7:Show category image on category page in full width in a 2 column template
I want to add the category image on top of the page. Currently it is displayed under the product list view, and i want it to be above the left navigation, so that it takes full page width.
I created a template file in mytheme/template/catalog/category/image.phtml and i just added some text "I am here".
After that i add the following xml to my local.xml file under catalog_category_default
<reference name="content">
<block type="catalog/category_view" name="category.image" template="catalog/category/image.phtml"></block>
</reference>
But it is still not working and the text is not displayed there. When this text is displayed, then i will display the category image, but for now i just want to make the block working and display it on top of the page.
Thank you
Maybe your category does not load the layout handle catalog_category_default. There are 2 handles for categories _default and _layered.
To make sure you cover both cases and so you won't duplicate markup try this approach.
define your custom handle.
<my_awsome_category_handle>
<reference name="content">
<block type="catalog/category_view" name="category.image" template="catalog/category/image.phtml"></block>
</reference>
</my_awsome_category_handle>
Then include that handle in both category handles.
<catalog_category_default>
<update handle="my_awsome_category_handle" />
</catalog_category_default>
<catalog_category_layered>
<update handle="my_awsome_category_handle" />
</catalog_category_layered>

Magento Cart layout change not sticking

Sorry this is a novice question...
I have changed the layout of my magento cart to popup.html.
i have edited the checkout.xml to use popup.phtml... this is the code i have used in the checkout.xml....
<checkout_cart_index translate="label">
<label>Shopping Cart</label>
<remove name="right"/>
<remove name="left"/>
<reference name="root">
<action method="setTemplate">
<template>page/popup.phtml</template>
</action>
</reference>
</checkout_cart_index>
The problem is that everything was working fine... but i was making changes on the category page and suddenly the cart has stopped showing layout popup.phtml and has started showing 2 column-left and that too without the cart content.
i was making some changes to catalog.xml ... but cant see how it would override the display of checkout/cart
I have been banging my head around this for couple of hours now... Any suggestions as to where i should look to see whats overriding the popup.phtml completely and just displaying an empty two column layout with left column.
thanks..much appreciate..
The particular file generally does not matter. What matters is the layout update handle, i.e. top level nodes in layout update XML, e.g. default, catalog_category_layered, checkout_onepage_index. It is these which "scope" your layout XML directives.

Magento Category Pages Layout Set to 2 Col but 3 is showing?

I have just start to design a template for Magento 1.6, It is a fresh install and I have made a folder for the app and skin! I am only creating files for the sections I need to edit for leaving the base template to do the rest. The only files I have edited are left_callout.phtml and header.phtml also I have edited the checkout.xml to move the My Cart to the left sidebar.
I have gone into the admin and changed the default category to 2 Columns and Left Sidebar as you can see in the image below:
http://i.stack.imgur.com/HQlLQ.jpg
But when I view the categories in the frontend it still shows 3 columns with both sidebars as you can see in the image below:
http://i.stack.imgur.com/70Xnf.jpg
I have disabled the cache in the admin! And I havn't edited the the XML files other than the checkout.xml Anyone know why this is happening? Also how come the otions are greyed out in the sub categories as you can see in the image above.
Write this code in local.xml (If not,then create) :-Path :-magento_folder/app/design/frontend/mytheme(your_package)/neo(your_theme)/layout/local.xmlTry this :
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
</default>
<catalog_category_default>
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
</catalog_category_default>
</layout>
Set layout 1column.phtml2columns-right.phtml3columns.phtmlBetween template-tag depending on your requirements.Onclicking any category,the page you will see should have the above selected layout templateHope this may help you.
I think you should edit page.xml and change under <default>
<block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">`
to
<block type="page/html" name="root" output="toHtml" template="page/2columns-left.phtml">`
Maybe this help http://www.magentocommerce.com/boards/viewthread/16838/

Removing the block "Popular Tags" from the index view in Magento

I started working with Magento this week and I'm trying to create a new theme. Following the "Designing for Magento" article of the wiki, I tried to remove the Popular Tags block from the index view, adding this line to local.xml on magento\app\design\frontend\default\mytheme\layout:
<remove name="tags_popular"/>
I don't why, but the tags are still there while if I do the following the language switcher disappears:
<remove name="store_language"/>
I also tried this to no effect:
<reference name="left">
<action method="unsetChild"><name>tags_popular</name></action>
</reference>
I even deleted tag.xml and the tags are still there!
I know that I can get rid of them disabling the Mage_tag in the backend, buy I want to understand why this is not working.
Thanks!
Just add this in your theme->page.xml default block
<remove name="tags_popular"/>
you can remove block any of magneto. then you can remove after it's block name.
here you see tag_popular it's block name remove plus it's block name
Remove default magento block
Have a look into tag.xml where you will find this code, which you have to comment out:
<default>
<!-- Mage_Tag -->
<reference name="left">
<block type="tag/popular" name="tags_popular" template="tag/popular.phtm">
<action method="setTemplate"><template>tag/popular.phtml</template></action>
</block>
</reference>
</default>
How silly, the popular tags were shown in the main page because they came in the default code of the content page (menu: CMS > Pages), so I just had to erase that :P

Resources