Instagram image count based on screen size

Hello Bricks Builders,

Maybe I am just tired but I couldn鈥檛 find an option in the Instagram feed element to control the displayed image count in different screen sizes. What I want to achieve:

Mobile: 9 images in 3 rows

Tablet: 12 images in 3 rows

Desktop: 18 images in 2 rows

Is it possible somehow? Sorry if this is a dumb question.

Thank you!

See the issue here @timmse

Do you have any ideas how to cleverly solve this issue? Maybe hide some of the images via css?

Mobile view:

Desktop view:

You can change the number of columns per breakpoint, but can鈥檛 change the number of posts per breakpoint, as it鈥檚 one request. Just set it to 18, and hide the unnecessary ones per breakpoint.

/* Add to tablet breakpoint */
%root% li:nth-child(n+13) {
    display: none;
}

/* Add to mobile breakpoint */
%root% li:nth-child(n+10) {
    display: none;
}

I set it to 12 so it works on all three breakpoints.

(Hiding some elements would be a strange solution as it will also use bandwidth and load time, am I right?)

Bandwidth shouldn鈥檛 be an issue these days, and I鈥檇 say you wouldn鈥檛 even notice if it takes slightly longer. But of course: the more to load, the longer it takes.

Yes I agree but it is not elegant solution :slight_smile:

But there is no solution to pre render the content based on screen size. Or maybe there is but I agree it doesn鈥檛 worth it.