Quick question: where would I add a bit of PHP code that I want to appear in my header area? I have created a custom header area with 2 widget areas, and obviously I can't use PHP code in a widget. I tried looking at the theme files, but could not determine where I should put it.
Here is the code:
PHP Code:
<div id="btn-cart" class="fr">
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>">
<span>
<?php
echo sprintf(_n('%d item – ', '%d items – ', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);
echo $woocommerce->cart->get_cart_total();
?>
</span>
</a>
</div>
I would like for the cart information (code above) to be displayed between the search bar and the navigation bar in the header.
I'm using the most current version of WP and Atahualpa, and Woocommerce as my shopping cart.
Any help is greatly appreciated