I’m trying to move the Woocommerce Category Archive Title from above the archive page to inline with the products.
This is how it looks currently:
This is where I’m trying to position it:
Here is the site for reference: https://farmtofrank.wpengine.com/product-category/prepared-foods
The code I’ve created to implement this is below, but it doesn’t appear to be working.
add_action ( 'woocommerce_before_shop_loop', 'single_cat_title' ); function single_cat_title($display = true) { return single_term_title( $prefix, $display ); echo '<div id="cat-name">' . $category[0]->cat_name . '</div>'; }