Plugin Author
ILLID
(@mihail-barinov)
Hi,
You can open a support threat and I will be happy to help you.
As I understand you want to change the URL that will be shared. In this case you need to use the data-url attribute with the needed image. This will redirect users that will click on a shared post to the url specified inside data-url.
And how can I do this? There is no option in the settings? “data-url”
Plugin Author
ILLID
(@mihail-barinov)
Data-url need to be set as attribute for all needed images separately. Want to set this for all possible images at once? You can use PRO plugin version to set custom value for shared URL or just use following code snippet:
add_action('wp_footer', 'my_wp_footer2');
function my_wp_footer2() { ?>
<script>
window.addEventListener('load', function() {
function sti_data( data ) {
data.page = data.media;
return data;
}
if ( typeof StiHooks === 'object' && typeof StiHooks.add_filter === 'function' ) {
StiHooks.add_filter( 'sti_data', sti_data );
}
}, false);
</script>
<?php }
This will share a link that will lead directly to the shared image.
thank you! but how can I make it so that it sends only a link to the image (without a link to the page)
Plugin Author
ILLID
(@mihail-barinov)
Did you try this code snippet? It must share only image link without page link.