Okay
  Public Ticket #2473314
Post Grid Item Height on Mobile
Closed

Comments

  • Jason Lane started the conversation

    Hi there,

    On desktop view, I have my post grid item height set to 60%(vh). I would like to reduce that to around 40%(vh) on mobile. I have tried to insert so custom code but haven't had luck targeting the proper area.

    I can't find a responsive setting for this in the page builder. Any chance you could point me in the right direction, or share a code snippet with the proper media query and tags?


    Thank you!

  •  8,884
    Tahir replied

    Hey Jason Lane ,

    Thanks for using Salient. You will have to use Custom CSS as there is no such responsive option available in the Theme Options Panel to adjust the Post Grid Height.

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    @media only screen and (min-width: 1000px) {
        .nectar-post-grid[data-grid-item-height="60vh"] .nectar-post-grid-item {
            min-height: 40vh !important;
        }
    }

    Thanks


    ThemeNectar Support Team