Move title above images on category pages
-
Hi,
I need to work out a way to move the titles above the images on the category pages (or every page in woocommerce would also be fine). I am struggling to do this with css neatly but found some code to add to my child theme’s functions file, unfortunately this doesn’t seem to be working and I’m sure it’s something I’m doing wrong as it’s not an area I’ve done much with…
My whole functions file is
/* turn off product counts on woocommerce */
add_filter( ‘woocommerce_subcategory_count_html’, ‘jk_hide_category_count’ );
function jk_hide_category_count() {
// No count
}remove_action( ‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10 );
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10 );the top function to turn off product counts works fine but the bottom 2 don’t – am I doing something wrong here?
Thanks for any pointers,
Andrew
- The topic ‘Move title above images on category pages’ is closed to new replies.