Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Center Footer Items on Mobile Only - Lammer Theme

Solved

Center Footer Items on Mobile Only - Lammer Theme

tinygoatcoffee
Tourist
7 0 6

Could someone please explain how to center align the footer menu items on my mobile version of website please? I am using Lammer theme and have tried other solutions suggested for centering but it seems like every theme is different? 

 

https://trytinygoat.com

 

Thank you

 

@members links to members

Accepted Solution (1)

Ujjaval
Shopify Partner
1242 197 213

This is an accepted solution.

@tinygoatcoffee 
Put below code into theme.liquid file before closing </body> tag

<style>
@media only screen and (max-width: 767px) {
.row.pb-5 {
    text-align: center;
}
.site-footer__section .img-logo, .image-content__image-container.logofooter {
   width: 100% !important;
}
}
</style>

View solution in original post

Replies 6 (6)

harivishwakarma
Shopify Partner
322 46 55

Hallo @tinygoatcoffee 

 

GO to online store > Theme > Action > edit code > Assets > base.css/custom.css

Paste the below code at bottom of the file -> Save

 

@media only screen and (max-width: 767px) {
.row.pb-5 {
text-align: center !important;
}
.image-content__image-container.logofooter {
margin: 0 auto !important;
}

.site-footer__section .img-logo, .image-content__image-container.logofooter {

    width: 100% !important;

}

}
 

Hope that my solution works for you.

Best regards,

Hariom vishwakarma

banned

PageFly-Victor
Shopify Partner
7865 1786 3116

Hi @tinygoatcoffee 

This is Victor from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.scss.css.

Step 3: Paste the below code at bottom of the file -> Save

 

@media only screen and (max-width: 767px) {

.row.pb-5 {

    text-align: center;

}

.site-footer__section .img-logo, .image-content__image-container.logofooter {

    width: 100% !important;

}

}

PageFlyVictor_0-1673355686854.png

 

 

Hope that my solution works for you.

Best regards,

Victor | PageFly

GemPages
Shopify Partner
5625 1262 1254

Hi @tinygoatcoffee,

 

Glad to support you today.

 

To can align center the footer logo on mobile, you can check out my suggestion below to make it:

 

 

1. Go to Edit code on Online Store:

GemPages_0-1673355689645.png

 

2. add my code  above the </body> tag on Theme.liquid: 

<style>

	@media (max-width: 767px) {
		.site-footer .image-content__image-container.logofooter {
			margin: 0 auto !important;
		}
		.site-footer__section .img-logo {
			width: 100% !important;
		}
	}

</style>

 

Eg:

GemPages_1-1673355815994.png

 

That logo show like this when you add my code:

GemPages_2-1673355846746.png

 

I hope you find the answer helpful.

Kind & Best regards,
GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

Ujjaval
Shopify Partner
1242 197 213

This is an accepted solution.

@tinygoatcoffee 
Put below code into theme.liquid file before closing </body> tag

<style>
@media only screen and (max-width: 767px) {
.row.pb-5 {
    text-align: center;
}
.site-footer__section .img-logo, .image-content__image-container.logofooter {
   width: 100% !important;
}
}
</style>
tinygoatcoffee
Tourist
7 0 6

Thank you so much Ujjaval! Your solution worked best because I could find "theme.liquid". I don't seem to have Asset > base.css (or at least I haven't been able to find base.css) so the other solutions centered around base.css didn't work for me. Greatly appreciate you!

Celina_
Shopify Partner
6 0 0

Hi @tinygoatcoffee 

 

I’m Celina, a freenlance web designer and developer.


You can try this code by following these steps:

1. Go to Edit code on Online Store:

Celina__0-1673359182204.png

 

2. add my code  above the </body> tag on Theme.liquid:

 

 

<style>

@media (max-width: 767px) {

.site-footer .image-content__image-container.logofooter {

margin: 0 auto !important;

}

.site-footer__section .img-logo {

width: 100% !important;

}

}

</style>

 

 

Hope it helps!

Feel free to contact me if you have any questions.

 

Warmest Regards,

Celina

Are you finding a web designer - developer? I'm here.
Feel free to contact me to build your Shopify store using PageFly.
Skype/Email: celina.freelancer@gmail.com