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?
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;
}
}
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!
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):
Thanks
ThemeNectar Support Team