Shopify themes, liquid, logos, and UX
i want to add top-margin in blogs & blogs post, only in mobile version & it should not affect header cause i had added some custom codes in header, want changes only on blogs & blogs post pages..
URL: https://redpandaoutdoor.in/blogs/rorschak/rorschak-rock-rescue-skills-competition
Hey @Emiway1
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 767px) {
.article {
margin-top: 75px !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
it worked, but this page is still like that only https://redpandaoutdoor.in/pages/event
Hey @Emiway1
Remove the previous code and try this updated code.
<style>
@media screen and (max-width: 767px) {
.article {
margin-top: 75px !important;
}
.page {
margin-top: 100px !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
not working bro
Hi @Emiway1
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(max-width:767px){
.article-banner__content.text-custom {
margin-top: 73px;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025