Shopify themes, liquid, logos, and UX
Hi there! New with shopify and trying to figure out how to edit some things, not very familiar with coding or CSS.
I'm trying to change it so when I hover over everything it changes to an underline. The main navigation menu does this because it was defaulted, but I want it to do it with the little icons on the top right (cart, search and profile). As well as the collection links on the front of my main page. Right now when I hover over them the arrow moves on the text, and the icons get a little bigger and blur.
Using theme "spot light."
Thank you so much!
Solved! Go to the solution
This is an accepted solution.
Thanks for the info, check this one.
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 "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
{% if template.name == 'index' %}
<style>
.header__icons {
position: relative;
}
.header__icons .svg-wrapper:hover:after {
content: '';
position: absolute;
top: 80%;
left: 55%;
width: 35px;
height: 1px;
background-color: black;
transform: translateX(-50%);
}
.header__icons {
padding-right: 0;
}
a.full-unstyled-link:hover {
cursor: pointer;
border: none;
box-shadow: none;
text-decoration: underline;
text-underline-offset: .3rem;
color: rgb(var(--color-link));
background-color: transparent;
font-family: inherit;
}
</style>
{% endif %}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @Toast
So do you like to add the underline hover on the icons and the other links in the homepage? Would you mind sharing your store URL? Thanks!
This is an accepted solution.
Thanks for the info, check this one.
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 "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
{% if template.name == 'index' %}
<style>
.header__icons {
position: relative;
}
.header__icons .svg-wrapper:hover:after {
content: '';
position: absolute;
top: 80%;
left: 55%;
width: 35px;
height: 1px;
background-color: black;
transform: translateX(-50%);
}
.header__icons {
padding-right: 0;
}
a.full-unstyled-link:hover {
cursor: pointer;
border: none;
box-shadow: none;
text-decoration: underline;
text-underline-offset: .3rem;
color: rgb(var(--color-link));
background-color: transparent;
font-family: inherit;
}
</style>
{% endif %}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you SO much! And for being so fast. Thank you!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024