New Shopify Certification now available: Liquid Storefronts for Theme Developers

center footer menu and text on mobile DAWN theme

Solved
artiumc
Excursionist
25 0 7

hey everyone

how can i center all the footer section the links and the text only on mobile?

thank you in advance 🙏🙏

 

bula.co.il

pass: geibee

 

WhatsApp Image 2023-11-06 at 20.48.16_81af718d.jpg

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4235 979 1193

This is an accepted solution.

One more to delete this one. 

Made4uoRibe_0-1699465544045.png

If still not working then opn your theme.liquid. find the </body> tag. 

And paste the code below. 

 

<style>
@media only screen and (max-width:749px){
.list-menu__item {
    justify-content: center;
}
.footer-block.grid__item.scroll-trigger.animate--slide-in {
    text-align: center;
}
}
</style>

 

And SAVE. 

same like this. 

Made4uoRibe_1-1699465783029.png

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 13 (13)
Made4uo-Ribe
Shopify Partner
4235 979 1193

Hi @artiumc 

Would you mind to share your Store URL website? with password if its unpublish. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


artiumc
Excursionist
25 0 7

sure

bula.co.il

pass: geibee

 

thanks🙏

Made4uo-Ribe
Shopify Partner
4235 979 1193

Thanks for the info, try 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 "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width:749px){
.list-menu__item {
    justify-content: center;
}
.footer-block.grid__item.scroll-trigger.animate--slide-in {
    text-align: center;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699379455222.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


artiumc
Excursionist
25 0 7

Thanks for the comment!
Unfortunately it doesn't work

Made4uo-Ribe
Shopify Partner
4235 979 1193

Oh okay, relplace on this one. 

Same Instruction.

 

@media only screen and (max-width:749px){
.list-menu__item {
    justify-content: center !important;
}
.footer-block.grid__item.scroll-trigger.animate--slide-in {
    text-align: center !important;
}
}

 

And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


artiumc
Excursionist
25 0 7

Nope

still not working 

Made4uo-Ribe
Shopify Partner
4235 979 1193

I check your base.css i think you paste it wrong. Please jut copy and paste dont need to edit anthing. 

Made4uoRibe_0-1699463144455.png

Please delete this one. This is not the same code i provided. And Paste exactly on the code what I provide. If you dont delete/remove this code in the image youll have problem in the future. Thanks!

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


artiumc
Excursionist
25 0 7

im really appreciate your time and thank you for helping me🙏
I did what you said to do and it still doesn't work

Made4uo-Ribe
Shopify Partner
4235 979 1193

This is an accepted solution.

One more to delete this one. 

Made4uoRibe_0-1699465544045.png

If still not working then opn your theme.liquid. find the </body> tag. 

And paste the code below. 

 

<style>
@media only screen and (max-width:749px){
.list-menu__item {
    justify-content: center;
}
.footer-block.grid__item.scroll-trigger.animate--slide-in {
    text-align: center;
}
}
</style>

 

And SAVE. 

same like this. 

Made4uoRibe_1-1699465783029.png

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


artiumc
Excursionist
25 0 7

THANK YOU VERY MUCH IT WORKED! 

 

PageFly-Noah
Globetrotter
561 130 130

Hi @artiumc 

 

This is Noah from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
ul.footer-block__details-content {
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.footer__content-top * {
    text-align: center;
}
</style>

PageFlyNoah_0-1699409033507.png

 

Hope this can help you solve the issue 

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

artiumc
Excursionist
25 0 7

Hey thank you very much for the respond!

it worked but iy changed the footer on the dekstop also

i want it to be in the center only on mobile

what should i add to the code?

 

THANKS🙏

PageFly-Noah
Globetrotter
561 130 130

Hi @artiumc So sorry for my late response. 

Please replace the code above with this new one to make it only apply for mobile

<style>
@media screen and (max-width: 767px){
ul.footer-block__details-content {
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.footer__content-top * {
    text-align: center;
}
}
</style>

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.