New Landing How can we help? Themeforest Theme Support Neighborhood Changing Shopping Cart Icon

Viewing 15 posts - 1 through 15 (of 26 total)
  • #41302
    MonteCristo
    Member
    Post count: 26

    Hi, I’ve searched the forum and can’t locate a response.

    How to I change the shopping cart icon from the ‘fa-lock’ to ‘fa-shopping-cart’icon.

    fa-lock: http://fortawesome.github.io/Font-Awesome/icon/lock

    fa-shopping-cart: http://fortawesome.github.io/Font-Awesome/icon/shopping-cart

    Is there a file that contains the class ID I can update?

    Thanks
    M

    #41996
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey, a search for “change cart icon” brings up a few threads, have you checked them out?

    http://support.swiftideas.net/search/?q=change+cart+icon

    #42285
    MonteCristo
    Member
    Post count: 26

    Thanks, I was searching for shopping cart icon but for some odd reason couldn’t locate.

    Thank you for the link, one question which I couldn’t see in previous was how do I add a space as it appears very tight – between icon and $ symbol. Picture attached.

    I changed ‘sf-cart’ to ‘fa fa-shopping-cart’

    Would   help or ruin the code?

    Thanks
    M

    #42442
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Try adding this css to your custom css:

    .shopping-bag-item .fa-shopping-cart {
      margin-right: 6px;
    }

    – Kyle

    #43118
    MonteCristo
    Member
    Post count: 26

    Hi Kyle, thanks for the custom css, I tried but unfortunately that but didn’t create the 6px gap.

    #43130
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Please can you provide me with a link so that I can check the css for you

    – Kyle

    #47443
    MonteCristo
    Member
    Post count: 26

    Hi Kyle,

    Thanks for your help, since last update it has resolved the issue with your custom CSS.

    Thanks for your help again.

    Monte

    #47684
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! 🙂

    – Kyle

    #65448
    sparkone
    Member
    Post count: 22

    I’m trying the same thing but I can’t find the custon css to change the icon. Please help me?

    #65512
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi @sparkone

    For Dante or Neighborhood?

    – Kyle

    #65524
    sparkone
    Member
    Post count: 22

    For Neighborhood

    #65547
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Open up neighborhood/includes/swift-framework/sf-woocommerce.php and go to line 111 and change this:

    <a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'swiftframework'); ?>"><i class="sf-cart"></i><?php echo $woocommerce->cart->get_cart_total(); ?></a>

    for this:

    <a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'swiftframework'); ?>"><i class="fa fa-shopping-cart"></i><?php echo $woocommerce->cart->get_cart_total(); ?></a>

    – Kyle

    #65559
    sparkone
    Member
    Post count: 22

    Ok Thanks!
    but will this not be changed at the next update?

    #65561
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    It will yes, to change it with css you will need to replace the background image, which means you will have to get the cart icon as an image and upload it. Then replace this css:

    .menu > li.shopping-bag-item a > i.sf-cart, .mobile-cart-link i.sf-cart {
      background: url("images/shopping_bag_icon.png") no-repeat scroll left top rgba(0, 0, 0, 0);
    }

    – Kyle

    #71324
    charnold
    Member
    Post count: 9

    Hey Kyle,

    I changed the code in neighborhood/includes/swift-framework/sf-woocommerce.php line 111 and the cart icon is working great when viewed on a desktop. On mobile, however, it is still showing the shopping bag. Is there another line of code to change in sf-woocommerce.php for mobile?

    Thanks!

Viewing 15 posts - 1 through 15 (of 26 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register