Home Forums Air WordPress Theme Which file to edit airtheme social bar of product page woocomerce

This topic contains 1 reply, has 2 voices, and was last updated by  SeaTheme 7 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18131

    minarchitect
    Participant
    Purchased

    Hello, I want to edit the twitter link, when sharing, on the social bar of single product pages (Woocommerce).

    This social bar of the product page.
    https://drive.google.com/open?id=1gIlyWq1w_d6ZD72pHe68JSBua8Il14-j

    Before this, I have successfully edited the twitter share-link of gallery post, from the file /template/single/gallery/portfolio-social.php
    I use the first two “post tag” to turn into the hashtag when tweeting. So i have change the tweet link in the portfolio-social.php from href="https://twitter.com/share?url=<?php echo esc_url($post_link); ?>&text=<?php the_title(); ?>" to href="https://twitter.com/intent/tweet?url=<?php echo esc_url($post_link); ?>&text=<?php the_title(); ?>&hashtags=<?php echo $post_tags[0]->name; echo ','; echo $post_tags[1]->name; ?>"

    I would like to ask you
    1. Which file or how can I edit the tweet link of the product page?
    2. In the Woocomerce single product page, I cannot use “post tag” right? Maybe I must change from the “post tag” to the “product tag” instead? So do you know how to change the code to use the product tage instaad of the post tag. for example can i use echo $product_tags[1]->name instead of echo $post_tags[1]->name; or what is the code of this.

    Thank you so much,
    Min

    #18134

    SeaTheme
    Keymaster
    Purchased
    Supported

    Hi,

    1. The social share codes are in function airtheme_interface_social_bar_and_navi of /functions/interface/interface-template.php

    They affect normal posts also.

    2. I don’t understand this question, what’s post tag you mentioned?

    Regards!
    Bwsm – uiueux.comTwitterFacebook

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!