Blog Styles Question

Home Forums Premium WordPress Themes Seasonal Pro Blog Styles Question

This topic contains 2 replies, has 2 voices, and was last updated by  Anton Kassimov 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10236
    Anton Kassimov
    Participant

    Hello Andre,

    I have a bit of a weird question, but I would love it if the following were possible. I’m a big fan of the “Small” blog style and love the way it looks on my desktop. However, when viewing the site on mobile, I would really prefer it if the featured image in the blog list appears above my content excerpt. In fact, if I set the blog style to “Grid” and view the site on a mobile phone, that’s exactly the look I want. Of course, problem is, I’m not a fan of the Grid look on desktop.

    Is there perhaps a code I could add to my child theme stylesheet or function.php file that would allow me to use “Small” blog style for screens of a certain resolution, and revert to a different blog style for small screens like the one of a phone?

    Thank you for your help,

    Anton

    #10244
    Shaped Pixels
    Keymaster

    Hi Anton,

    try adding this CSS to your child theme and see if that creates the desired look on moblies.

    @media (max-width: 400px) {
    	.blog-small .wp-post-image {
    	  max-width: 100%;
    	}
    }

    regards
    Imre

    ps: Andre is no longer managing ShapedPixels

    #10245
    Anton Kassimov
    Participant

    Sorry to hear about Andre, hope he’s doing alright.

    Anyway, the fix was exactly what I was looking for, thank you Imre!

    Anton

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.