All things Shopify and commerce
Hi! I'm not a coder so please let me know where to add code and everything. My goal is to align all these quick links so that:
1. Desktop view: Left column is right aligned, middle column is centered, and right column stays as is
2. Mobile view: All columns are center aligned
Is this possible?
Website: hayatigoods.com
Password: uflaw
Thank you for your help!!
Solved! Go to the solution
This is an accepted solution.
Hey @yasmineb,
This is an easy and robust fix for the customization that you need!
Add the following to your base.css. Follow the images if you're not familiar with the edit code page 🙂
@media screen and (min-width: 1024px) {
.footer__blocks-wrapper .footer-block:nth-child(1) h2,
.footer__blocks-wrapper .footer-block:nth-child(1) li {
text-align: right !important;
margin-right: 0 !important;
}
.footer__blocks-wrapper .footer-block:nth-child(2) h2,
.footer__blocks-wrapper .footer-block:nth-child(2) li {
text-align: center !important;
margin-right: 0 !important;
}
}
@media screen and (max-width: 768px) {
.footer__blocks-wrapper .footer-block h2 {
text-align: center !important;
}
.footer__blocks-wrapper .footer-block li a {
justify-content: center !important;
}
}
Result:
♥ If you found my solution helpful, please consider giving it a Like and marking it as the ✔ Accepted Solution
Try our WhatsApp Chat Button Widget with multipe agents.Supachat: WhatsApp Chat Button
A Product of Maverick Studio
This is an accepted solution.
Hey @yasmineb,
This is an easy and robust fix for the customization that you need!
Add the following to your base.css. Follow the images if you're not familiar with the edit code page 🙂
@media screen and (min-width: 1024px) {
.footer__blocks-wrapper .footer-block:nth-child(1) h2,
.footer__blocks-wrapper .footer-block:nth-child(1) li {
text-align: right !important;
margin-right: 0 !important;
}
.footer__blocks-wrapper .footer-block:nth-child(2) h2,
.footer__blocks-wrapper .footer-block:nth-child(2) li {
text-align: center !important;
margin-right: 0 !important;
}
}
@media screen and (max-width: 768px) {
.footer__blocks-wrapper .footer-block h2 {
text-align: center !important;
}
.footer__blocks-wrapper .footer-block li a {
justify-content: center !important;
}
}
Result:
♥ If you found my solution helpful, please consider giving it a Like and marking it as the ✔ Accepted Solution
Try our WhatsApp Chat Button Widget with multipe agents.Supachat: WhatsApp Chat Button
A Product of Maverick Studio
This worked perfectly. Thank you!!
@yasmineb Please follow below steps to change the alignment for footer menu in mobile and desktop. Let me know whether it is helpful for you.
.footer-block--menu:nth-child(1) * {
text-align: right;
}
.footer-block--menu:nth-child(2) * {
text-align: center;
}
.footer-block__details-content>li:not(:last-child) {
margin-right: 0rem;
}
@media screen and (max-width: 750px) {
.footer-block--menu .footer-block__heading {
text-align: center;
}
.footer-block--menu .list-menu__item {
justify-content: center;
}
}
Thanks 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, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024