[Resolved] different size of featured image on mobile/ipad/PC

Home Forums Support [Resolved] different size of featured image on mobile/ipad/PC

Home Forums Support different size of featured image on mobile/ipad/PC

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #995153
    Anil

    Hi

    I set featured image on archive pages 90px x 90px.

    I want 3 different size of featured image on archive pages:

    mobile = 90×90
    ipad = 150×150
    PC = 300×300

    Please advise how it can be achieved, I believe this is not in customizer…..

    #995627
    Leo
    Staff
    Customer Support

    Hi there,

    Try using the customizer option to set the PC dimension of 300×300, then use this CSS to change for tablet and mobile:

    @media (max-width: 768px) {
        .post-image img {
            width: 90px;
            height: 90px;
        }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
        .post-image img {
            width: 150px;
            height: 150px;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #995731
    Anil

    Thanks Leo, Bye.

    #995763
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.