How to change the look of the baskets in the storefront theme (wordpress)?

In General, there is a site on wordpress + woocommerce and the storefront theme, it is impossible to change the appearance of the basket which is located in the header, swap items, etc., in the subject storefront code can help to understand what he says:
storefront_cart_link_fragment function( $fragments ) {
 global $woocommerce;

 $fragments['a.cart-contents'] = ob_get_clean();
 $fragments['a.footer-cart-contents'] = ob_get_clean();

 return $fragments;
storefront_cart_link function() {
 <a class="cart-contents" href="<?php echo esc_url( WC()->cart->get_cart_url() ); ?>" title="<?php esc_attr_e( 'View your shopping cart', 'storefront' ); ?>">
 <span class="amount"><?php echo wp_kses_data( WC()--->cart->get_cart_subtotal() ); ?></span> <span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()--->cart->get_cart_contents_count(), 'storefront' ), WC()->cart->get_cart_contents_count() ) );?></span>
br><br> it is interesting that when the function to remove the storefront_cart_link() the cart disappears, but the edit code does not work, add, remove or swap spani in the function does nothing, in advance, thank you for your response!
July 2nd 19 at 17:53
2 answers
July 2nd 19 at 17:55
  1. storefront_cart_link() sets the HTML-code of the basket. Change it to one that is needed.
  2. storefront_cart_link_fragment() sets the update hypertext markup language-the code of the basket via Ajax.
  3. After the edits in storefront_cart_link() load the page with the updated HTML-code, but Ajax it immediately overwrites the old code, which is stored in sessionStorage. To get rid of old code altogether, type in console sessionStorage.removeItem('wc_fragments'). After that will finally see all your changes.
July 2nd 19 at 17:57
In General appearance usually changes with CSS, your Spanov have classes, which is configured and appearance

Find more questions by tags CMSWordPressPHP