• readysite

    (@readysite)


    it says here that i can change url deafult /guide/customize-content/, It shares a link to a page, I only need a picture.

    I spent an hour of time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter readysite

    (@readysite)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this review.