Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #750173

    Hi

    My client asked to add share buttons on the single product page. I found this thread: https://kriesi.at/support/topic/social-share-buttons-product-page/

    I added the code to my functions.php file and see the share buttons. However, I don’t get the text heading. Here’s what I have added to my functions.php file:

    // add social share buttons on single product page
    add_action(‘woocommerce_after_single_product_summary’, ‘avia_add_social_toolbar’, 1);
    function avia_add_social_toolbar()
    {
    if( is_singular( ‘product’ ) ) {
    $content = ‘<div class=”share_heading”>Share this Product</div>’;
    $content .= avia_social_share_links(array(), false, ”, false);
    $content .= ‘<div class=”hr”></div>’;
    }
    echo $content;
    }

    Did I miss something and that’s why the heading is not showing?

    Thanks
    Lyse

    #750174

    Hi

    Here’s a link to a product on my website:

    Ear Posts/Ear Stud with Oval Bezel Mounting in Sterling Silver

    Lyse

    #750313

    Hi,

    Can you elaborate on the text heading that you are expecting to see?

    Best regards,
    Jordan Shannon

    #750328

    Hi Jordan,

    I was expecting to see the following heading, just before the social share buttons:
    … $content = ‘<div class=”share_heading”>Share this Product</div>’;…

    Thanks
    Lyse

    #750361

    Hi,

    I am able to see “Share this Product” on the page just above the social buttons. Please view the link below

    https://snag.gy/U0Izmt.jpg

    Best regards,
    Jordan Shannon

    #750539

    Hi Jordan,

    I see it now. Great I was able to style the heading and the icon container.

    Thank you for patience

    Lyse

    #750560

    Hi,

    I am glad this worked out for you!

    Best regards,
    Jordan Shannon

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