Hi guys,
I have added a new page with some collections that I am wanting to use as PPC landing page. I got the instructions here https://help.shopify.com/en/themes/customization/collections/featuring-collections-using-link-lists
This worked really well. I just want to know how I can add text overlay to the images for the collection titles and remove the collection titles that appear below the collection images so the collection images look the same as my home page that has in-bedded text overlay on the collection images.
Thanks very much.
Bolsta
Hello bolsta,
Can you share your site url so that i can check and let you know?
h3.collection-grid-item__title { display: none; }
Thanks mate. I think I didn't explain myself very well.
here is the link of the page in mention https://detectorsdirect.com.au/pages/waterproof-gold-metal-detectors-1
I'm hoping to remove the text below the collection images and then replace that text with a text overlay on the images so it looks the same as the collection images on the home page. Sorry for the confusion
Hello bolsta,
Ok now Add this css at bottom of Online Store-> Themes -> Edit code->Assets->theme.scss.liquid
#MainContent .collection-grid__item-title { position: absolute; top: 50%; left: 0; right: 0; } #MainContent .text-center { position: relative; } .collection-grid__item-title .collection-item__title { color: #fff; font-size: 24px; font-weight: 600; }
the home page collection images are responsive but not on the other page.
@bolsta wrote:Sorry man, one more thing, its not working on mobile. the text is not staying within the picture frame. Anything I can do? Thanks heaps mate
Text size for mobile add this css in bottom
@media only screen and (max-width: 767px) {
.collection-grid__item-title .collection-item__title { font-size: 14px;
}}
Subject | Author | Posted |
---|---|---|
34m ago | ||
an hour ago | ||
an hour ago | ||
2 hours ago | ||
2 hours ago |