• Resolved thias79

    (@thias79)


    Hey!

    How do I do if I want to change location on the Product Description and the short description in Woocommerce?

    I would like the short description to appear above the usual product description.

    Anyone who can explain how I do to change this?

    Thanks in advance.

    / Mathias

Viewing 4 replies - 1 through 4 (of 4 total)
  • AJ a11n

    (@amandasjackson)

    Hi there,

    I would like the short description to appear above the usual product description.

    May I ask, what exactly you would like to accomplish with moving the descriptions around?

    I ask because, if you look at a product page on Amazon, for example, there’s a short description at the top with the images and price, then a more detailed description later. It’s “standard” to have a short description at the top, like Amazon.

    Thread Starter thias79

    (@thias79)

    Sorry!, of course I mean the opposite. I want the big product description at the top and the short one at the bottom.

    I thought correctly but wrote wrong when I posted the post in the forum

    / Mathias

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    @thias79 – you can do this by unhooking the actions which generate each of the descriptions and rehook them with different priorities.

    https://www.cloudways.com/blog/reorder-content-on-woocommerce-single-product-page/

    Something like this could work, but you’ll need to tweak the priorities and possibly even the hooks you use.

    
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    
    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
    add_action( 'woocommerce_single_product_summary', 'the_content', 20 );
    
    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change location on Product Description and Short Description’ is closed to new replies.