Cant center my fetured product pic on mobile view. Please HELP.
Hello @Itsnotcenterd
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
You can solve it by adding code to Custom CSS of Feature product section.
.grid__item { margin-left: 0px !important; }
Hey @Itsnotcenterd
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hello @Itsnotcenterd
Go to online store ---------> themes --------------> actions ------> edit code------->base.css ----> line number 951
search this code
@media screen and (max-width: 749px) {
.grid--peek.slider .grid__item:first-of-type {
margin-left: 1.5rem;
}
}
and replace with this code
@media screen and (max-width: 749px) {
.grid--peek.slider .grid__item:first-of-type {
margin-left: 0px !important;
}
}
result
If this was helpful, hit the like button and mark the job as completed.
Thanks
Hello @Itsnotcenterd , Please follow these steps to add this CSS code:
- Go to your Online Store
- Click on “Themes”
- Select “Edit code”
- Open your CSS file. open “base.css”
- Add the following code.
Update this below CSS by find this class with this media query “.grid–peek.slider .grid__item:first-of-type”
@media screen and (max-width: 749px) {
.grid--peek.slider .grid__item:first-of-type {
margin-left: 1.5rem; /* remove or comment this CSS code */
margin-left: 0rem; /* add this new CSS code */
}
}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.




