Hi, I am trying to make a responsive banner for our website www.valuevault.ca .
It looks good with most of the dimensions except mobile view, because it’s fully disappearing.
Please let me know how I can edit css to make banner stay and resize for mobile view too.
1 Like
Hi @MariaDaniels
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code just above tag
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
Hi @MariaDaniels
Check this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media screen and (max-width: 749px){
.banner__media:first-child {
display: contents !important;
}
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!