• I’m trying to put the product exerpt on top of the title on the woocommerce shop page.

    I’m having trouble figuring out how to use the hook for this.

    I’ve read this post about how to change the order on a single product page, but I can’t find anything about how to the order of the products details on the shop page.
    https://wordpress.org/support/topic/changing-the-order-of-things-displayed-on-product-page

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_single_title', 5 );
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_single_excerpt', 10 );
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_single_price', 20 );

    I’m not sure where to find the values for the shop page to use here. I’m looking inside the content-product and the archive-product pages.

  • The topic ‘Woocommerce product exerpt on top of title’ is closed to new replies.