All things Shopify and commerce
Hi, I added some code to the theme.liquid on my prestige theme store (code below). This was so I could align the social media icon links better in my footer, the only issue im having is the links now sit weirdly on mobile. Is there anything i can add to this code below so it still works but only targets desktop view?
<style>
.footer__inner{
position: relative;
}
.social-media--list{
position: absolute;
top: 84px;
}
.footer__inner button.button {
background: unset !important;
color: #000 !important;
box-shadow: none !important;
border: unset;
border-bottom: 1px solid #000;
padding: 0 !important;
letter-spacing: normal;
}
</style>
Desktop view (want to keep this) –
Mobile View (not happy with the way this looks, specifically the how the social links and menu link items sit so close together) –
Solved! Go to the solution
This is an accepted solution.
Wrap the cs with media query like this
<style>
@media only screen and (min-width: 767px) {
.footer__inner{
position: relative;
}
.social-media--list{
position: absolute;
top: 84px;
}
.footer__inner button.button {
background: unset !important;
color: #000 !important;
box-shadow: none !important;
border: unset;
border-bottom: 1px solid #000;
padding: 0 !important;
letter-spacing: normal;
}
}
</style>
Thanks
This is an accepted solution.
<style>
@media only screen and (min-width: 600px) {
.footer__inner{
position: relative;
}
.social-media--list{
position: absolute;
top: 84px;
}
.footer__inner button.button {
background: unset !important;
color: #000 !important;
box-shadow: none !important;
border: unset;
border-bottom: 1px solid #000;
padding: 0 !important;
letter-spacing: normal;
}
}
</style>
You can try this @emilyaugstudios
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
This is an accepted solution.
Wrap the cs with media query like this
<style>
@media only screen and (min-width: 767px) {
.footer__inner{
position: relative;
}
.social-media--list{
position: absolute;
top: 84px;
}
.footer__inner button.button {
background: unset !important;
color: #000 !important;
box-shadow: none !important;
border: unset;
border-bottom: 1px solid #000;
padding: 0 !important;
letter-spacing: normal;
}
}
</style>
Thanks
This is an accepted solution.
<style>
@media only screen and (min-width: 600px) {
.footer__inner{
position: relative;
}
.social-media--list{
position: absolute;
top: 84px;
}
.footer__inner button.button {
background: unset !important;
color: #000 !important;
box-shadow: none !important;
border: unset;
border-bottom: 1px solid #000;
padding: 0 !important;
letter-spacing: normal;
}
}
</style>
You can try this @emilyaugstudios
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
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