Solved

Centering all blocks on mobile footer Palo Alto

KJD
Excursionist
17 0 13

Hi,

 

I am working in the Palo Alto theme (preview of website linked below, it's not yet published).

 

I am wondering if anyone has the code to center all of the blocks (Text, logo, and social icons) in the footer on mobile only.

 

Preview link is below:

https://t1owmqxh7o5tj3nt-18156895.shopifypreview.com

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
5127 1223 1497

This is an accepted solution.

Hi @KJD 

Check 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: 767px){
.footer-blocks * {
    text-align: center;
}
a.footer-block__logo-image, form#NewsletterForm--footer-block-3 {
    align-self: center;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1707082930186.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

Reply 1 (1)

Made4uo-Ribe
Shopify Partner
5127 1223 1497

This is an accepted solution.

Hi @KJD 

Check 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: 767px){
.footer-blocks * {
    text-align: center;
}
a.footer-block__logo-image, form#NewsletterForm--footer-block-3 {
    align-self: center;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1707082930186.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