Archived topic
change title position
5 replies · Started by siddardha thammana on August 31, 2020
Hello
How can I make the title appear above the featured image instead of on the right side of the image?
Thanks
Hi there,
Can you try this solution here?
https://generatepress.com/forums/topic/move-product-title-above-product-image-on-woocommerce/
Adding PHP: https://docs.generatepress.com/article/adding-php/
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.