Okay
  Public Ticket #2176867
Featured Image Height
Closed

Comments

  • mkk_ started the conversation

    Hi there, i want to set height of featured image as 500px.

    This 500 height will be for all types of post. 

    How to do this. 

    {"wp":{"use":false,"adminUrl":"","username":"","password":""},"ftp":{"use":false,"url":"","port":"","user":"","password":"","path":""}}
  •  1,558
    Laborator replied

    Hi there,

    Add this CSS to have a fixed height of 500px of the featured images, while the width will be proportionally set:

    .post-image {
        height: 500px; 
        text-align: center;
    }
    .featured-image img {
        height: 500px;
        width: auto;
        margin: 0 auto;
        position: relative;
    }
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group