• tycooko

    (@tycooko)


    Hi all.
    I installed the plugin and I’m using its widget in the home page of my site displaying it in a panel with a header stating “Latest Instagram”.
    I have two other similar plugins/widgets: one for Facebook and one for Twitter, both with their own panel in the home page.
    The guy who created my website made the links inside the panels’ headers refresh, so that each link points to the latest Facebook post and the latest tweet, respectively.
    This is the code he wrote in the scripts.js file:
    //facebook plugin (home)
    $(‘.header.facebook’).attr(‘href’, $(‘.rfbp-post-link’).attr(‘href’));

    //Twitter plugin (home)
    if($(‘.fetch-tweets .fetch-tweets-intent-reply a’).attr(‘href’)) {
    var twID = $(‘.fetch-tweets .fetch-tweets-intent-reply a’).attr(‘href’);
    twID = twID.replace(‘https://twitter.com/intent/tweet?in_reply_to=’, ”);

    setTimeout(function() {
    $(‘.header.twitter’).attr(‘href’, ‘https://twitter.com/PsmTickling/status/’+twID);
    }, 500);

    Can I – and if so, how – do the same thing with this plugin and its widget?

    https://www.ads-software.com/plugins/easy-instagram/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tycooko

    (@tycooko)

    Anybody here?

    ssmathias

    (@ssmathias)

    Hello tycooko,

    That does sound like an interesting use case, but it’s currently not one we’ve built support for within the plugin. It may be possible, however we don’t currently support custom requests as part of the plugin and are unable to provide assistance in this particular case at this time.

    If you do determine a method that will work for your needs and it can be incorporated into the plugin, we will accept contributions and consider integrating them into the plugin code for future versions.

    Thank you for your feedback, and your patience!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Script code to automatically update the link in the header of the widget?’ is closed to new replies.