Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #284900

    Hi there,

    I am using the post slider on my homepage to display my blog. It’s set to display 2 columns and a total of 4 posts, which is fine for desktop, but it is also displaying two columns on smartphones, which makes the columns too small and ‘stretchy’. How can I set the mobile version to display only one column with the 4 posts stacked on top of each other? I am also using a portfolio grid on the homepage, which automatically displays 1 item in 1 row for the mobile version.

    Thanks for your help!

    Best regards,

    Nathalie

    #284968

    Hey Nathalie!

    Thank you for visiting the support forum!

    Try to add this on Quick CSS or custom.css:

    @media only screen and (max-width: 767px) {
    .avia-content-slider .slide-entry {
    width: 100%;
    }
    }

    Cheers!
    Ismael

    #285017

    Hi Ismael,

    Thanks for your quick reply. I added the media query to the quick CSS, but the post slider still displays 2 columns instead of 1 on my Samsung Galaxy S3 Mini. Do you have any other suggestions that might change the layout?

    Thanks!

    Nathalie

    #285245

    Hey!

    Can you post the link to your page so we can check it on our mobile devices? Also, please make sure that you flushed browser cache on your mobile device

    Regards,
    Yigit

    #286435
    This reply has been marked as private.
    #286814

    Hey!

    Please try adding following code to Quick CSS instead

    @media only screen and (max-width: 768px) {
    div.avia-content-slider-inner article { width: 100%; margin: 0; }}

    Cheers!
    Yigit

    #286845

    Hi Yigit,

    Thank you, but it is still not working :-(. The media query itself works fine, I tested it changing the background color to black and it does change it. However, there are still two posts displayed next to each other, so somehow that part of the query is not working.
    Any other suggestions I might try?

    Cheers,

    Nathalie

    #287047

    Hey!

    Thank you for the update.

    The screen resolution of the the device you’re using spans up to 960px. Please try this:

    @media only screen and (max-width: 960px) {
    .avia-content-slider .slide-entry {
    width: 100%;
    }
    }

    Best regards,
    Ismael

    #287202

    Hi Ismael,

    Still no luck, the media query again works fine (I changed the background color to green and it works on my Samsung S3 Mini), but the columns are still not stacked…

    Best regards,

    Nathalie

    #287295

    Hi!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .slide-entry { width: 100%; }}

    Regards,
    Yigit

    #287361

    Hi Yigit,

    Thanks, that solved it!

    Cheers,

    Nathalie

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Change number of posts/columns displayed in post slider on mobile version’ is closed to new replies.