axessJosh
asked on
change number of wp_query results for responsive design
I am just beginning to dive into responsive design with Wordpress and noticed a few things on a number of sites. One site had 4 posts show on the homepage floated side by side on a full screen page. As the screen size shrunk, the width of the post sizes scaled with the browser size until a point where it reduced from 4 results to 3.
As the browser continued to reduce, it shrunk the width until a certain size where it reduced to 2. Finally, it reduced to 1 result with an arrow to scroll to the next results.
Is that a CSS design where it reduces what's displayed or something in the PHP query that returns fewer? I'm guessing that it's CSS, but wanted to check and a few basic Google searches has not revealed much yet.
any suggestions or a link in the right direction?
As the browser continued to reduce, it shrunk the width until a certain size where it reduced to 2. Finally, it reduced to 1 result with an arrow to scroll to the next results.
Is that a CSS design where it reduces what's displayed or something in the PHP query that returns fewer? I'm guessing that it's CSS, but wanted to check and a few basic Google searches has not revealed much yet.
any suggestions or a link in the right direction?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to set a viewport first in order to make your website responsive. See the link:https://developers.google.com/web/fundamentals/layouts/rwd-fundamentals/set-the-viewport
i think now your website becomes responsive .
Regards