Need a unique gift idea?
A Pastebin account makes a great Christmas gift

WooCommerce - Show attributes at short description location

lorro Dec 12th, 2016 68 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <?php
  2.   // show attributes where short description normally goes
  3.   // code goes in functions.php for your child theme
  4.   remove_action ( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
  5.   add_action ( 'woocommerce_single_product_summary', 'show_attributes', 20 );
  6.   function show_attributes() {
  7.     global $product;
  8.     $product->list_attributes();
  9.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand