• Resolved straw94

    (@straw94)


    Hi,

    Thanks for this great plugin!
    How can I display the attributes below the product name on the single product page instead of displaying it below the product summary?

    Cheers,
    D.

Viewing 1 replies (of 1 total)
  • Plugin Author isabel104

    (@isabel104)

    Hi. Currently, the plugin doesn’t have an option for this. (I could add it if enough people request it.) For now, you would have to add custom code for this (see this for how to add custom code).

    The following code snippet will move the attributes up, below the title, on the single product page. If you want to move them below the price, change the number 7 to 11 (the number 7 is on the 3rd from the last line, below).

    // On the single product page, move attributes below the title.
    function my_show_atts_on_product_page() {
    	global $WooCommerce_Show_Attributes;
    	remove_action( 'woocommerce_single_product_summary', array( $WooCommerce_Show_Attributes, 'show_atts_on_product_page' ), 25 );
    
    	add_action( 'woocommerce_single_product_summary', array( $WooCommerce_Show_Attributes, 'show_atts_on_product_page' ), 7 );
    }
    add_action( 'init', 'my_show_atts_on_product_page' );
    
    • This reply was modified 7 years, 7 months ago by isabel104.
Viewing 1 replies (of 1 total)
  • The topic ‘Show attributes below product name on the single product page’ is closed to new replies.