View Cart button – move beside search bar
-
Hello, I’m trying to move the “view cart” next to the search form. I found the code:
<a class="cart-contents" href="<?php echo WC()->cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>">View Cart <?php echo sprintf (_n( '%d item', '%d items', WC()->cart->cart_contents_count ), WC()->cart->cart_contents_count ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a>
But am unable to have the “view cart” display and cannot get the price to not display. Basically, I’m trying to get the following:
view Cart (2) with the shopping cart icon. (and the two would be if someone had 2 items in their cart, only displaying the items in cart). I’ve tried a bunch of things but nothing seems to work. Any suggestions would be greatly appreciated.
- The topic ‘View Cart button – move beside search bar’ is closed to new replies.