Shopify themes, liquid, logos, and UX
I'm trying to bold a specific menu item in my main menu. I knew how to do this in the Spotlight Theme, but not in the current theme (rhymes with barehouse). Shopify won't let me say the true name for some reason. I'm assuming the necessary CSS would go in the theme.css file, but I don't know what class or id to call out. Above is the code I've tried.
Solved! Go to the solution
This is an accepted solution.
Try this one.
#shopify-section-sections--21306043498792__header > section > nav > div > div > ul > li:nth-child(1) > a {
font-weight: 700;
color: #ed6e0f;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Can you please share website link
Unfortunately not, because I still haven't flipped the switch for this theme.
But here's the code I think would be useful:
Hello! I've finally launched this new theme. I've figured out bolding the "Sale" line item on Mobile with the following css:
#mobile-menu > div > div:nth-child(1) > div:nth-child(1) > ul > li:nth-child(5) {
font-weight: 700;
color: #ed6e0f;
}
However I cannot get something similar to work on desktop. Any ideas? Here's the live store: https://backcountryfoodie.myshopify.com/
Hi @bcfoodieguy
Did you try to call using the :nth-child pseudo-class? Would you mind to share even the preview? Cause its hard to tell which selector this item belong. Thanks!
I did. Couldn't get that to work either 😕 Here's the link:
Hey @bcfoodieguy try this code on footer.liquid file
footer.footer {
position: relative;
margin-top: 105px !important;
}
footer.footer::after {
position: absolute;
content: '';
width: 100%;
height: 100%;
min-height: 240px;
max-height: 240px;
background: url(https://cdn.shopify.com/s/files/1/0023/7427/1029/files/Intersect.png?v=1691057355);
background-repeat: no-repeat;
background-size: cover;
background-position: bottom;
margin-top: 0px;
background-size: 100%;
bottom: 99%;
}
Its already solve?
Not solved yet. Trying to highlight the "Sale" menu item orange and bold. Works on our current theme (spotlight), but not on the new theme that isn't live yet (warehouse).
Oh, I see. I try to the demo store for warehouse just check if its working if not then it would require the URL website for the warehouse, even just the preview. Thanks!
#shopify-section-header > section > nav > div > div > ul > li:nth-child(3),
#mobile-menu > div > div:nth-child(1) > div:nth-child(1) > ul > li:nth-child(3) {
font-weight: 700;
color: #ed6e0f;
}
Unfortunately that didn't work. I'll just hold off for now and once we switch themes I'll circle back so we can figure out works. Thanks!
Hello! I've finally launched this new theme. I've figured out bolding the "Sale" line item on Mobile with the following css:
#mobile-menu > div > div:nth-child(1) > div:nth-child(1) > ul > li:nth-child(5) {
font-weight: 700;
color: #ed6e0f;
}
However I cannot get something similar to work on desktop. Any ideas? Here's the live store: https://backcountryfoodie.myshopify.com/
This is an accepted solution.
Try this one.
#shopify-section-sections--21306043498792__header > section > nav > div > div > ul > li:nth-child(1) > a {
font-weight: 700;
color: #ed6e0f;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
That worked, thank you so much!
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024