Shopify themes, liquid, logos, and UX
Hello,
I added a disclaimer to my footer but it is tot he left and i would like to align it in the center. I have tried many align-center codes but had no luck, please advise!
<div class="grid__item">
<small class="site-footer__copyright-content">
* Some remote locations do not qualify for free shipping. *
</small>
</div>
Solved! Go to the solution
This is an accepted solution.
@TFN205 - add this css to the very end of your base.css file and check
.footer .grid__item{margin: 0 auto;}
This is an accepted solution.
Hi,
I checked your store and found that you used @suyash1 solution and it looks okay.
However, I think you will need to adjust the settings a bit.
Please change the code as below.
@media screen and (min-width: 768px) {
.footer .grid__item {
margin: 0 auto;
white-space: nowrap;
}
}
@media screen and (max-width: 767px) {
.footer .grid__item {
margin-left: 10px;
white-space: nowrap;
}
}
Please check your current disclaimer in both PC & Mobile.
---------------------------------------------------------------------------------------------
*Revised
While you were make the disclaimer, you were using the grid__item class which will affect other settings. I like to suggest you to change the class name as your own as below.
<div class="talesma-consent">
<small class="site-footer__copyright-content">
* Some remote locations do not qualify for free shipping. *
</small>
</div>
And then, add the class settings in CSS file as below.
.talesma-consent {
width: 100%;
text-align: center;
}
This will make looking better on both PC & Mobile.
Hope it helps.
Thanks.
@TFN205 - can you please share the page link?
This is an accepted solution.
@TFN205 - add this css to the very end of your base.css file and check
.footer .grid__item{margin: 0 auto;}
Thank you so much!! that worked perfectly
@TFN205 - welcome
This is an accepted solution.
Hi,
I checked your store and found that you used @suyash1 solution and it looks okay.
However, I think you will need to adjust the settings a bit.
Please change the code as below.
@media screen and (min-width: 768px) {
.footer .grid__item {
margin: 0 auto;
white-space: nowrap;
}
}
@media screen and (max-width: 767px) {
.footer .grid__item {
margin-left: 10px;
white-space: nowrap;
}
}
Please check your current disclaimer in both PC & Mobile.
---------------------------------------------------------------------------------------------
*Revised
While you were make the disclaimer, you were using the grid__item class which will affect other settings. I like to suggest you to change the class name as your own as below.
<div class="talesma-consent">
<small class="site-footer__copyright-content">
* Some remote locations do not qualify for free shipping. *
</small>
</div>
And then, add the class settings in CSS file as below.
.talesma-consent {
width: 100%;
text-align: center;
}
This will make looking better on both PC & Mobile.
Hope it helps.
Thanks.
Thank you ! that is a good point, it did look weird in mobile
Now, it looks better but it is cut off at the end
how should i proceed?
I revised my answer.
Please use the lower part to make it better.
You may select the solution for both.:)
Thanks.
Thank you so much! really appreciate your help 🙂
Hi,
If I don't see the structure, I can't tell it will work.
However, please try the code below.
.site-footer__copyright-content {
width: 100%;
text-align: center !important;
}
If it doesn't work, please let me know the store url (and PW if pw protected).
Hope it works.
Thanks.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024