Tagged: woocommerce
Hi there
Trying to find the best way to change the icon to a custom image and wondering where best to do it. CSS or php?
Any help would be great
Thanks
Richard
Hi raslade!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
a.cart_dropdown_link > span:before {
opacity: 0;
}
a.cart_dropdown_link > span:nth-child(1) {
background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png)!important;
background-size: contain;
background-repeat: no-repeat;
background-position: 50% 50%;
}
Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.
Cheers!
Yigit
Wow that was a quick response. Awesome.
However the image is 47px x 19px and is currently being cropped with the above CSS. Where do I apply the width and height?
Thanks
Richard
Of course.
Hi Yigit
Ah crap, was that all it was. Often it’s the simplest things. Brilliant thank you for your help and super quick responses.
Richard