Search This Blog

Mind freaker Stuff

Please Visit my new blog http://www.mindfreakerstuff.com for new articles related to web and mobile designing.

Monday, April 30, 2012

Wrap Continues Text in Table :CSS , HTML


Add following properties to your Class in CSS

.ClassName{
         white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
         white-space: -pre-wrap;      /* Opera 4-6 */
         white-space: -o-pre-wrap;    /* Opera 7 */
         white-space: pre-wrap;       /* css-3 */
         word-wrap: break-word;       /* Internet Explorer 5.5+ */
         word-break: break-all;
         white-space: wrap; /* Internet Explorer 8 and other*
}

Thursday, April 12, 2012

How to Change My Cart Link Name : Magento (using CSV file)

To Change " My Cart "  Link Name  in   Magento using CSV file   or  To Add custom label name to "My Cart" Using translate.CSV


1) Open  translate.CSV  file  

    (If your using English translation)
   CSV Path =   app\design\frontend\default\Your_Theme_Name\locale\en_US\ translate.CSV


2) Add Following Lines 
"My Cart (%s item)", "Shopping Bag ( %s )"
"My Cart (%s items)", "Shopping Bag ( %s )"
"My Cart", "Shopping Bag"


3) Save File and Clear Magento Cache .
Login to the admin and refresh the cache by going to System->Cache Management.




Cheers...... :)

How to Add Custom Class to top links and footer links : Magento

To Add Custom Class to top links  in Magneto

1) Open XML files for Top links And Add following tag

<liParams/> 
<aParams>class="logged-out"</aParams>

Suppose you want to add custom class to logout link.

<customer_logged_out>
    <
reference name="top.links">
       
<!--Add 'Log In' link -->
        <
action method="addLink" translate="label title" module="customer">
            <
label>Log In</label>
            <
url helper="customer/getLoginUrl"/>
            <
title>Log In</title>
            <
prepare/>
            <
urlParams/>
            <
position>100</position>

            <liParams/>
            <aParams>class="logged-out"</aParams>

        </action>
    </
reference>
</
customer_logged_out>

    


Thats it your done :) ........


Where are the files for the links located


Top  Links XML Path =  app\design\frontend\default\your_Theme\layout 


  • The “My Account” link is found in the customer.xml file
  • The “My Wishlist” link is found in the wishlist.xml file
  • The “My Cart” and “Checkout” links are both found in the checkout.xml file these links have class by default 
  • The “Login” and “Log Out” links are found in the customer.xml file