Skip to content

Conditional Results Based on Viewport/Screen Size in Tag Pairs #10402

Answered by jackmcdade
dugtratch asked this question in Q&A
Discussion options

You must be logged in to vote

Alas no, server side isn't going to know the viewport.

What I would do is pull 5 and then hide the last 2 on mobile with CSS.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dugtratch
Comment options

Answer selected by dugtratch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants