Shopify themes, liquid, logos, and UX
Hi,
Im having trouble changing the color of the "I Lager" text to green without it changing position on the website.
Could anyone take a look and help? 🙂
Code:
<div class="avail_deliver_prodpage">
{% for tag in product.tags %}
{% if tag contains '20-30 dagar' %}
<span class="text-left">Leveranstid:</span>
<span class="text-right"><i class="icon_dispatch"></i>20-30 Arbetsdagar</span>
{% elsif tag contains 'I Lager' %}
<span class="text-left">Lagerstatus:</span>
<span class='text-right text-success'><i class="icon_dispatch"></i>I Lager</span>
{% elsif tag contains '10-15 dagar' %}
<span class="text-left">Leveranstid:</span>
<span class="text-right"><i class="icon_dispatch"></i>10-15 Arbetsdagar</span>
{% elsif tag contains '1-3 dagar' %}
<span class="text-left">Leveranstid:</span>
<span class="text-right"><i class="icon_dispatch"></i>1-3 Arbetsdagar</span>
{% elsif tag contains 'nästa dag' %}
<span class="text-left">Leveranstid:</span>
<span class="text-right"><i class="icon_dispatch"></i>Nästa dag- order innan 12.00</span>
{% endif %}
{% endfor %}
</div>
Pictures:
Solved! Go to the solution
This is an accepted solution.
Hi @ImDedi
Add the following code to your theme.scss.css file at the very end, that should do it:
#ProductSection-product-template > div.grid.product-single > div.grid__item.medium-up--two-fifths > div > div.avail_deliver_prodpage > span.text-right {
color: green;
}
Let me know!
Hi @ImDedi
Would you mind sharing your store's URL so we can provide a solution on that?
This is an accepted solution.
Hi @ImDedi
Add the following code to your theme.scss.css file at the very end, that should do it:
#ProductSection-product-template > div.grid.product-single > div.grid__item.medium-up--two-fifths > div > div.avail_deliver_prodpage > span.text-right {
color: green;
}
Let me know!
User | RANK |
---|---|
127 | |
96 | |
77 | |
69 | |
39 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022