Alright, we know now how to integrate WooCommerce in a Genesis framework theme. What about adding a WooCommerce cart with product count and a total amount to Genesis primary navigation? No problem! Just follow these simple steps.
Add the following code to the functions.php of your Genesis child theme.
With this code, we hook an extra div to the genesis_header_right area. Inside this mini-cart div is a span for the amount and for the cart-count. These spans are important. You may want to style each of these objects to your own preference. The spans are wrapped in a link to the WooCommerce cart template.
The styling of the cart depends on your own taste as well as on the theme you use. Add the following css to the stylesheet of your theme for some basic styling.
That’s all. It is as simple as this. Enjoy the ride!