Home Forums WoodMart support forum Changing the Cart icon + buttons on product image (in Mobile version)

Changing the Cart icon + buttons on product image (in Mobile version)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #52830

    RobertP
    Participant

    Hi,

    1) Sometime ago you guys’ve helped me with changing the Cart icon into a Bag icon from the shop page when hovering on a product on and from the empty cart page, by giving me the following CSS Code:

    div.product-list-item .woodmart-add-btn>a:before,
    div.woodmart-hover-base:not(.product-in-carousel):not(.hover-width-small) .woodmart-add-btn>a:before,
    div.woodmart-hover-button .hover-mask>a:before,
    div.woodmart-hover-info-alt .product-actions>a:before,
    div.woodmart-hover-quick .woodmart-add-btn>a:before,
    div.woodmart-hover-standard .btn-add>a:before,
    div.quick-shop-wrapper .single_add_to_cart_button:before,
    div.cart-widget-side .widget_shopping_cart .empty:before,
    p.cart-empty:before,
    div.woodmart-buttons .woodmart-add-btn > a:before {
    content: “\f120”;
    }
    p.cart-empty:after {
    margin-left: -22px;
    top: 92px;
    }
    div.cart-widget-side .widget_shopping_cart .empty:after {
    margin-left: -14px;
    top: 52px;
    }

    Everything works perfectly. However, I just noticed that on Mobile version, on the Wishlist Page, the Cart icon still remained (please see attached). Would you please give me the necessary CSS to change the Cart icon into the Bag icon?

    2) Also on Mobile version, there are the Bag and Wishlist icon buttons on the product images (please see attached). How can I customize this? For example, I would first want to completely remove these icons from the image and then just have an “Add to Bag” button somewhere under the product image, in the description, maybe on the last line right below the price.

    Many thanks!

    Attachments:
    You must be logged in to view attached files.
    #52873

    Hello,

    1. Please add this custom CSS to Theme Settings > Custom CSS

    .woocommerce table.wishlist_table td.product-add-to-cart .add_to_cart:before {
       content: "\f120";
       display:block;
       margin:auto;
    }

    You will get a bag icon instead of shopping cart.

    2. Navigate to Theme Settings > Shop > Products & categories styles > try different variations of Hover on product

    If you have any questions feel free to contact us.

    Best Regards

    #52993

    RobertP
    Participant

    Thank you for your answer.

    1) If I use the CSS code u gave me in Global Custom CSS (which I actually want, i.e. to be globally), there is an issue with the Add to Cart button (please see attached).

    2) Yes, I knew about the different variations of Hover on product that exist in Theme Settings. However, my issue here is that I want for Desktop the Quick variation, but I do not like how this variation looks on Mobile (as per the attachment uploaded in my first message). For Mobile I want the Standard variation.
    How can I have the Quick variation for Desktop and the Standard variation for Mobile?

    3) Woodmart-icons? Where can I see all the icons (e.g. \f120 for the shopping bag) so I can use them by means of CSS.

    Attachments:
    You must be logged in to view attached files.
    #53011

    Hello,

    1/ Please provide admin access to your site.

    2/ If you mean different hover effects it is impossible to set different hover effects on different devices. You can use different CSS on different devices if it would help.

    3/ All the icons code are from here https://fontawesome.com/v4.7.0/icons/ check this https://gyazo.com/f35c595ca934da7b3ddfee04786f6914

    If you have any questions feel free to contact us.

    Best Regards

    #53101

    RobertP
    Participant

    Hello,

    Thank you for your responses.

    1) Please see attached. I will give you my admin details if you still can’t fix it just by seeing it.

    2) Got it, thanks.

    3) You didn’t actually my question. Again, please show me where do I find, for example, the shopping bag /f120 used by Woodmart theme. Because this shopping bag icon (or the /f120 code), does NOT exist here: https://fontawesome.com/v4.7.0/icons/

    Attachments:
    You must be logged in to view attached files.
    #53128

    Hello,

    Wishlist icon is shown only on responsive screens. It is not effective to add it to global CSS, you will need it in tablet or mobile or via media queries.
    f120 is our theme icon from Woodmart-font.

    Please try this CSS:

    .product-list-item .woodmart-add-btn>a:before, 
    .woodmart-hover-base:not(.product-in-carousel):not(.hover-width-small):not(.add-small-button) .woodmart-add-btn>a:before, 
    .woodmart-hover-button .hover-mask>a:before, 
    .woodmart-hover-info-alt .product-actions>a:before, 
    .woodmart-hover-quick .woodmart-add-btn>a:before, 
    .woodmart-hover-standard .btn-add>a:before, 
    .woodmart-price-table .woodmart-plan-footer .add-to-cart-loop:before {
    	content: "\f120";
    }
    
    @media (max-width: 1024px) {
    .woocommerce table.wishlist_table td.product-add-to-cart .add_to_cart:before {
    	content: "\f120";
    	}
    }

    If you have any questions contact us.

    Best Regards

    #53563

    RobertP
    Participant

    Thank you.

    May I find somewhere a list of the Woodmart fonts? I would like to see what other icons of your theme are available for use.

    #53598

    Hello,

    Please find below the list of applied icons:

    .wd-left-arrow-chevron:before {
      content: "\f111";
    }
    .wd-check:before {
      content: "\f109";
    }
    .wd-newlatter:before {
      content: "\f11f";
    }
    .wd-up-chevron:before {
      content: "\f112";
    }
    .wd-arrow-next:before {
      content: "\f118";
    }
    .wd-filters:before {
      content: "\f115";
    }
    .wd-moredots:before {
      content: "\f10c";
    }
    .wd-arrowaroundright:before {
      content: "\f10e";
    }
    .wd-bag:before {
      content: "\f120";
    }
    .wd-tag:before {
      content: "\f103";
    }
    .wd-tool:before {
      content: "\f11b";
    }
    .wd-login:before {
      content: "\f10b";
    }
    .wd-arrowaroundleft:before {
      content: "\f10d";
    }
    .wd-layout:before {
      content: "\f11a";
    }
    .wd-right-arrow-chevron:before {
      content: "\f110";
    }
    .wd-360-deg:before {
      content: "\f102";
    }
    .wd-carttest-1:before {
      content: "\f123";
    }
    .wd-compare:before {
      content: "\f122";
    }
    .wd-shapes:before {
      content: "\f108";
    }
    .wd-button-play-2:before {
      content: "\f100";
    }
    .wd-lup:before {
      content: "\f125";
    }
    .wd-logout:before {
      content: "\f10a";
    }
    .wd-eye:before {
      content: "\f116";
    }
    .wd-statik:before {
      content: "\f105";
    }
    .wd-user:before {
      content: "\f11e";
    }
    .wd-altcart:before {
      content: "\f107";
    }
    .wd-sort-by:before {
      content: "\f117";
    }
    .wd-coupon:before {
      content: "\f106";
    }
    .wd-addcart:before {
      content: "\f11c";
    }
    .wd-note:before {
      content: "\f104";
    }
    .wd-scaleerrows:before {
      content: "\f121";
    }
    .wd-cross:before {
      content: "\f10f";
    }
    .wd-symbol:before {
      content: "\f114";
    }
    .wd-arrows:before {
      content: "\f124";
    }
    .wd-arrow-back:before {
      content: "\f119";
    }
    .wd-edit:before {
      content: "\f113";
    }
    .wd-carttest-2:before {
      content: "\f101";
    }
    .wd-cart:before {
      content: "\f11d";
    }
    .wd-account-wishlist:before {
      content: "\f431";
    }
    .wd-account-details:before {
      content: "\f432";
    }
    .wd-account-download:before {
      content: "\f433";
    }
    .wd-account-exit:before {
      content: "\f434";
    }
    .wd-account-orders:before {
      content: "\f435";
    }
    .wd-account-address:before {
      content: "\f436";
    }
    .wd-account-other:before {
      content: "\f437";
    }
    .wd-size-ruler-3:before {
      content: "\f438";
    }
    .wd-account-payment:before {
      content: "\f439";
    }

    Best regards

Viewing 8 posts - 1 through 8 (of 8 total)