New Landing How can we help? Themeforest Theme Support Neighborhood Add text to cart in header

Viewing 8 posts - 1 through 8 (of 8 total)
  • #63563
    WMTD
    Member
    Post count: 13

    Hi,

    In my header I would like to display some text next to the cart symbol and amount.
    Just “Cart” or “Shopping Cart” or whatever..

    I’ve tried editing the following files:
    \includes\swift-framework\sf-content-display\sf-header.php (line 708)

    and

    \includes\swift-framework\sf-woocommerce.php (line 111)

    but the changes aren’t visible on my front-end.
    I’m not using any cache plugin…

    any suggestions on what I’m doing wrong.

    thanks in advance.

    #63583
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Are you using any child theme ? You made changes at correct line and file . If you provide your website URL so i can check .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #63588
    WMTD
    Member
    Post count: 13
    This reply has been marked as private.
    #63594
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please post change code of both files so i can check in detail .
    \includes\swift-framework\sf-content-display\sf-header.php (line 708)
    \includes\swift-framework\sf-woocommerce.php (line 111) .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #63595
    WMTD
    Member
    Post count: 13

    Did the same thing in both files, added the word “Cart:” right before the icon <i class>, that’s it.

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

    #63618
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Now CART text is displaying at my side now . Anyway You can use <i class=”fa-shopping-cart”></i> instead of <i class=”sf-cart”></i> to display cart icon perfectly .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #63628
    WMTD
    Member
    Post count: 13

    Thank you.

    Do I always need to edit both files to make the changes here?

    #63632
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please activate child theme and put sf-woocommerce.php so you will not to need to edit always .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

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

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

License required for one of the following items
Login and Registration Log in · Register