*

ysalim

  • ***
  • 87 posts
twitter share button code
« on: August 31, 2016, 01:34:35 PM »
Hi,

The twitter share button code behind currently is

Code: [Select]
[pre][pre]<a class="single single-twitter" title="<?php echo osc_esc_html(__('Share on Twitter''zara')); ?>" target="_blank" href="https://twitter.com/home?status=<?php echo osc_esc_html(osc_item_title()); ?>"><i class="fa fa-twitter-square"></i></a> [/pre][/pre]
and that doesn't share anything other than the title of the product

if you want to twit with the clickable url included change replace that line with this
Code: [Select]
<a class="single single-twitter" title="<?php echo osc_esc_html(__('Share on Twitter''zara')); ?>" target="_blank" href="https://twitter.com/home?status=<?php echo osc_esc_html(osc_item_title()); echo ' ' .osc_item_url();  ?>"><i class="fa fa-twitter-square"></i></a>

Now, how do we make the twit this button with image ? Anyone knows how?