Shopify themes, liquid, logos, and UX
Join us March 21 for an AMA on planning your 2023 marketing budget with 2H Media co-owners, Matt and Aron
I have a checkbox section in the cart on my page, and it is correctly centered on mobile, but on PC it aligns to the left instead of to the right like the rest of the text in the same section. How do i correct this?
Also is there a way to make the link in the sentence black, like the rest of the text. Right now its blue before clicked and purple after. I just want it to be black.
URL: https://teefiti.dk/cart/ Code: Teefiti2022
Solved! Go to the solution
This is an accepted solution.
@MetteT
Add this code
<style>
.payment-terms {
text-align: right !important;
}
@media(min-width: 280px) and (max-width: 767px){
.payment-terms {
text-align: center !important;
}
}
</style>
Go to Online store >> Edit code >> Assets >> base.css
Add this code below of base.css file
.payment-terms {
text-align: right !important;
}
@MetteT
Add this CSS below of theme.liquid after closing body tag(</body>).
<style>
.payment-terms {
text-align: right !important;
}
</style>
@MandasaTech It worked, but now it is also aligned to the right on mobile, how do i make it so its centered on mobile, but aligned to the right on pc?
Hey @MetteT ,
Welcome to the Shopify community!
You can follow the instruction below:
Go to Online Store->Theme->Edit code->base.css->paste bellow code in bottom of file.
.payment-terms p{
text-align: right !important;
}
If you feel like my answer is helpful, please Like and mark it as a solution. Let me know if you have any further questions.
Thank you!
Raman
This is an accepted solution.
@MetteT
Add this code
<style>
.payment-terms {
text-align: right !important;
}
@media(min-width: 280px) and (max-width: 767px){
.payment-terms {
text-align: center !important;
}
}
</style>
@MandasaTech Thank you, this worked! Do you also have a code for making the link black?
.payment-terms a {
color: black !important;
}
@media only screen and (min-width: 992px){
body .cart__ctas {
text-align: right !important;
}
}
Add this CSS at the bottom of Online Store->Theme->Edit code->Assets->base.css.liquid
@oscprofessionalI have already managed to align the text with code i got from Mandasa, and the part of your code that should make the link black unfortunately doesnt work. 😞
User | RANK |
---|---|
178 | |
157 | |
90 | |
33 | |
29 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023