We’re trying to change the button position and collection name positions on our homepage (landing page) for the MOBILE version of our site. We want this to apply to ALL our collections.
The collection name (text) and buttons display on the bottom left for desktop view, which works well. But they are automatically centered on the mobile view. We’d like these to be displaying in the same way as desktop, or at least at the bottom of the image.
I’ve attached a sample of our desktop and a sample of our mobile for one of the collections on our homepage.
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 only screen and (max-width: 767px){
.collection-block__info.text-position--bottom_left {
justify-content: flex-start !important;
align-items: end !important;
}
}