Brady, if you haven’t install Firefox web developer tool or FIrebug, please do as either of them is a must have tool for website development and it can help you tremendously in customize magetnto shop, that is, if you don’t write your own style sheet.
With web developer toolbar, you can easily find out what class (or id) controls the “My cart”, to see it, you go to ‘Information > display element information’, then click on My cart, there, you will see that it’s controlled by “.quick-access” and the ‘my cart’ has a class called “first”.
All you need to do is go to boxes.css, search for “.quick-access li.first”, then add:
.quick-access li.first {
background: url{cart_icon.jpg) no-repeat left center; /* you can use unit value too like “background: url{cart_icon.jpg) no-repeat 0 5px */
padding-left: 30px; /* the default value is set to ‘0’ in magento’s demom, you need to adjust the value accordingly so that the text won’t overlap the cart icon. */ }
The way you use is for place a background image in the div. but if you want place a clickable button. You can find the div in the template and place a button.
The way you use is for place a background image in the div. but if you want place a clickable button. You can find the div in the template and place a button.
Very true!
To me, image that is for visual pleasure that serves no purpose for site function, should stay in the background. There is already a ‘my cart’ to click, no need to make a cart icon clickable. Placing the icon in the background also have an incentive, say, if you want the icon change color, you can place that icon in the
li.first a:hover {background: url(car_icon_hover.jpg) }
im trying to do the same thing, and all the other icons work just not the wishlist icon! its driving me crazy.
.access { clear: right; float: right;position:relative; top: 10px; }
.access .links{ position:relative; }
.access ul { float: right; }
.access .links li { display:inline; margin-right: 10px; font-size: 12px;}
.access .links li a { color: #999999; padding-left: 17px; text-shadow: 0px 1px #fff; }
.access .links li a:hover { color: #000; text-decoration: none; }
.access .links li.first { padding-left:0 !important; }
.access .links li.last { background:none !important; padding-right:0 !important; margin-right: 0px;}
.access .links li.first a { background: url(../images/icons/account_ico.png) no-repeat left center; }
.access .links li.last a {background: url(../images/icons/login_ico.png) no-repeat left center; }
.top-link-wishlist { background: url(../images/icons/wishlist_ico.png) no-repeat left center; }
.top-link-cart { background: url(../images/icons/cart_ico.png) no-repeat left center; }
.top-link-checkout { background: url(../images/icons/checkout_ico.png) no-repeat left center; }
i’ve tested the links to all the icons, and they all work fine other then wishlist, the icon shows up if i directed it onto another link, so it has to be something wrong with the code itself.