Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1187895

    Hi, I have found the below code to put the social share buttons under the images, however, ideally I would like them under the tabs on the right – are you able to help please?

    remove_action( ‘woocommerce_before_single_product_summary’, ‘avia_close_image_div’, 20);
    add_action( ‘woocommerce_before_single_product_summary’, ‘avia_product_share’, 20);
    function avia_product_share() {
    //share links on single post
    avia_social_share_links();
    echo “</div>”;

    Thanks

    #1188162

    Hey farrows,

    Try using the filter ‘woocommerce_after_single_product_summary’.

    
    add_action( 'woocommerce_after_single_product_summary', 'avia_product_share', 20);
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1188294

    Thanks – its not quite what I had in mind – I was hoping to move it to the right column under the tabs section (see image link)
    image

    Is this poss?

    Thanks

    • This reply was modified 4 years, 10 months ago by farrows.
    #1188613

    Hi farrows,

    Did you try the filter provided above?

    Best regards,
    Victoria

    #1188829

    Yes, it went below both columns and therefore took up the full width of the page

    Thanks

    #1189561

    Hi,

    Thank you for the update.

    Try to adjust the priority value from 20 to 2 or replace the hook with this one.

    add_action( 'woocommerce_after_single_product_summary', 'avia_product_share', 2 );
    

    Please don’t forget to remove this line.

    add_action( ‘woocommerce_before_single_product_summary’, ‘avia_product_share’, 20 );
    

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.