Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author toastiestudio

    (@toastiestudio)

    To reorder where the links come you would need to change the hook I use.
    At the moment I use woocommerce single product summary hook 31 which places them just below the add to cart button.

    So in your themes function file you would need to remove that hook and add a new one with a different number and name.

    remove_action( 'woocommerce_single_product_summary', 'toastie_wc_smsb_form_code', 31 );
    
    add_action( 'woocommerce_product_thumbnails', 'toastie_wc_smsb_form_code' );

    That would move the share buttons to below the image, but above the thumbnails.

    Very cool!
    Thanks for that info. Easy & works perfectly in my child theme. (Plus, I’ve just learnt something new ??

    How would you move them UNDER the thumbnails? ??

    Plugin Author toastiestudio

    (@toastiestudio)

    Pretty much the same way, but by adding a number to the end of the add_action we would tell it to execute the actions in a particular order.
    (99 would pretty much always mean last).

    remove_action( 'woocommerce_single_product_summary', 'toastie_wc_smsb_form_code', 31 );
    
    add_action( 'woocommerce_product_thumbnails', 'toastie_wc_smsb_form_code', 99 );

    You can also see other woocommerce hooks here:
    https://docs.woothemes.com/wc-apidocs/hook-docs.html

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I move icons under product image not under description?’ is closed to new replies.