-
AuthorPosts
-
February 21, 2017 at 10:19 pm #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
LyseFebruary 21, 2017 at 10:20 pm #750174Hi
Here’s a link to a product on my website:
Lyse
February 22, 2017 at 8:17 am #750313Hi,
Can you elaborate on the text heading that you are expecting to see?
Best regards,
Jordan ShannonFebruary 22, 2017 at 8:46 am #750328Hi 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
LyseFebruary 22, 2017 at 10:07 am #750361Hi,
I am able to see “Share this Product” on the page just above the social buttons. Please view the link below
Best regards,
Jordan ShannonFebruary 22, 2017 at 4:24 pm #750539Hi Jordan,
I see it now. Great I was able to style the heading and the icon container.
Thank you for patience
Lyse
February 22, 2017 at 5:36 pm #750560Hi,
I am glad this worked out for you!
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.
