Site logo

Archived topic

change title position

5 replies · Started by siddardha thammana on August 31, 2020

Viewing posts 1–6 of 6

Hello

How can I make the title appear above the featured image instead of on the right side of the image?

Thanks

I added this code, but it didn't seem to change anything

add_action( 'wp', function() {
    if ( is_shop() || is_product_category() ) {
        // remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
           add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 11 );
    }
} );

Try removing the conditional tag.

It still didn't change

Can I get you to check with WooCommerce support on this?

I just activated the twenty twenty WP default theme and the title is on the left as well:
https://www.screencast.com/t/m96u7yzudS

They should be able to provide a similar snippet above to remove the default title and insert using another hook.

This archived topic is closed to new replies.