[Support request] change title position

Home Forums Support [Support request] change title position

Home Forums Support change title position

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1425723
    siddardha thammana

    Hello

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

    Thanks

    #1425740
    Leo
    Staff
    Customer Support
    #1426362
    siddardha thammana

    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 );
        }
    } );
    #1426664
    Leo
    Staff
    Customer Support

    Try removing the conditional tag.

    #1426819
    siddardha thammana

    It still didn’t change

    #1426827
    Leo
    Staff
    Customer Support

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.