Shopify themes, liquid, logos, and UX
On my Shop page I show all collections, but the font is white and not very readable. How do I either highlight the font or change the color or put the collection title underneath the picture? I realize this is easy for someone who knows what they are doing, but unfortunately I am new to liquid.
Solved! Go to the solution
This is an accepted solution.
@JoeB-CO
This will fix your problem:
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.scss.liquid and paste this at the bottom of the file:
.collection-grid-item__title {
margin-top: 20px;
top: 112% !important;
color: #000000 !important;
}
.collection-grid-item {
margin-bottom: 100px !important;
}
It will look like this:
Let me know if it works plz
Hello,
Thank you for your question.
Please share your store URL, page URL and also password (if your store has one) and I'll help you out to the best of my ability.
Kind regards,
Diego
current code is below, how do I modify it to highlight the title or put a shadow behind the text and make the text black?
.collection-grid-item {
position: relative;
width: 100%;
padding-bottom: 100%;
margin-bottom: $gutter-site-mobile;
@include media-query($medium-up) {
margin-bottom: $grid-gutter;
}
}
.collection-grid-item__title {
color: $color-overlay-title-text;
position: absolute;
text-align: center;
width: 100%;
top: 50%;
padding: 0 5px;
@include transform(translateY(-50%));
transition: $transition-link-hover;
text-shadow: 0 0 4px $color-text-shadow;
hyphens: auto;
@include media-query($medium-up) {
padding: 0 15px;
}
}
Hey @JoeB-CO,
We can do it black and white shadow but when you hover then title will disappear. can you give me a screenshot when you put above my given code
as you said title disappear?
Please provide a screenshot. I will check and correct it.
Thanks!
This is an accepted solution.
@JoeB-CO
This will fix your problem:
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.scss.liquid and paste this at the bottom of the file:
.collection-grid-item__title {
margin-top: 20px;
top: 112% !important;
color: #000000 !important;
}
.collection-grid-item {
margin-bottom: 100px !important;
}
It will look like this:
Let me know if it works plz
Yes, this worked great. I modified slightly.
.collection-grid-item__title {
margin-top: 12px;
top: 101% !important;
color: #000000 !important;
}
.collection-grid-item {
margin-bottom: 80px !important;
}
What does the !important do?
PLEASE HELP!!!!. I ENTERED THE CODE YOU SUGGESTED AND NOW I GOT THIS ERROR. NOW MY WHOLE SITE HAS CRASHED
Hello, I would like to do this as well. However, when I use that code the title is on the bottom of the collection instead of the top but I would it on top. Also I think white text with black stroke would look better instead of black with white shadow. Could you share a code that would have the title on top of the collection in white with black stroke? Thanks.
Thank you! This worked 😄
If I change the color #00000 to the colour code that I want, will that work? I didn't want to mess things up!
important; color: #000000 !important;
This code didn't work for me.
I looked for the Asset > theme.scss.liquid in my Shopify store code.
What I have in my Asset folder is Asset > theme.css.liquid
I applied the code to this Asset but it didn't make any difference to the collection's text color.
I am trying to change the color of the text in the Collection list.
This didn't work for me. Do you have a solution for Brooklyn theme? Thanks.
the following code worked:
.collection-grid-item__title {
margin-top: 12px;
top: 101% !important;
color: #000000 !important;
}
.collection-grid-item {
margin-bottom: 80px !important;
}
glad to hear it worked!
!important forces this code to be used in case the element has other styles applied to it.
Wishing you a great day!
Hey @JoeB-CO,
Please add the following code at the bottom of your assets/theme.scss.liquid file.
.collection-grid-item__title {
color: #fff !important;
top: unset !important;
text-shadow: none !important;
margin-top:30px;
}
.collection-grid-item {
margin-bottom: 45px !important;
}
@media only screen and (min-width: 750px) {
.collection-grid-item { margin-bottom: 55px !important; }
}
This code will take the title bottom of the image.
Let me know if this works for you.
Thanks!
Thanks so much for taking time to help me out. However, it didn't work like I hoped. The title just disappeared. My current code is below. Can I just change some code to highlight the text? Maybe put a white shadow with black text so it is readable on any background?
.collection-grid-item {
position: relative;
width: 100%;
padding-bottom: 100%;
margin-bottom: $gutter-site-mobile;
@include media-query($medium-up) {
margin-bottom: $grid-gutter;
}
}
.collection-grid-item__title {
color: $color-overlay-title-text;
position: absolute;
text-align: center;
width: 100%;
top: 50%;
padding: 0 5px;
@include transform(translateY(-50%));
transition: $transition-link-hover;
text-shadow: 0 0 4px $color-text-shadow;
hyphens: auto;
@include media-query($medium-up) {
padding: 0 15px;
}
}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024