• Hi,

    Would you be able to assist me with the CSS needed to make the display responsive with the size of the screen the user is viewing on? What I would like to happen is anything under 480 pixels, I don’t want any images just due to the size. Anything over that, I would like one row of images, but I would not like them to be too large or too small. Does that make sense?
    The site is letsjessup.com

    Thank you for any help you can provide,
    J.A.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey J.A.

    It looks like you may have gotten the feed working like you needed. Did you still need some help with anything?

    Thread Starter jasearles

    (@jasearles)

    The feed works, it just does not scale properly on mobile devices. My friend has an iphone 6 plus and the instagram will load 4 pictures and then if they refresh the page, sometimes the other 6 images show up. I have custom code that I pasted below. I guess what I’m really asking is, is there a way for the feed to scale as the size of the screen increases or decreases?

    Custom CSS:
    @media (max-width: 480px) {
    #sb_instagram{ display: none }
    }

    Custom Javascript:
    if( $(window).width() < 600 ){ $(‘#sb_instagram .sbi_item’).slice(4).remove(); }

    Thank you for your help!

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey jasearles,

    Sometimes it takes a a little bit of time before the feed completely loads. I’m thinking that your custom code fires just a split second too early most of the time and that is why it is unable to hide all of the images that you are hoping it will. Try adding a delay with this code:

    Custom CSS:

    @media (max-width: 600px) {
    #sb_instagram{ display: none }
    }

    Custom Javascript:

    setTimeout(function(){
      if( $(window).width() > 480 && $(window).width() < 600 ){
        $('#sb_instagram').show().find('.sbi_item').slice(4).remove();
      }
    }, 500);

    Try that out and let me know if it doesn’t seem to be the case.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display on mobile devices’ is closed to new replies.