WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Need Help With Woocommerce Hooks - Moving Title and Shor (2 posts)

  1. mattmikulla
    Member
    Posted 1 year ago #

    Modifying Woocommerce templates is fine but I have found that to actually move the output of certain elements around I need to use hooks.

    I am trying to understand how to use hooks but am struggling. Examples would really help. Bare with me. I am learning.

    I am trying to achieve the following.

    • Move the product title to right above the main product image
    • Move the short description/excerpt to right above the tabs

    Anyone know how I might properly achieve this while still retaining the schema.org markup?

    http://wordpress.org/extend/plugins/woocommerce/

  2. mattmikulla
    Member
    Posted 1 year ago #

    Ok. I think I figured it out.

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic