Adjust alignment of footer menu links in dawn theme

Solved

Adjust alignment of footer menu links in dawn theme

yasmineb
Excursionist
19 0 4

Hi! I'm not a coder so please let me know where to add code and everything. My goal is to align all these quick links so that: 

 

1. Desktop view: Left column is right aligned, middle column is centered, and right column stays as is 

2. Mobile view: All columns are center aligned 

 

Is this possible? 

 

Website: hayatigoods.com

Password: uflaw

 

Thank you for your help!!

yasmineb_3-1724629170551.png
Accepted Solution (1)

MaverickStudio
Shopify Partner
101 32 34

This is an accepted solution.

Hey @yasmineb,

This is an easy and robust fix for the customization that you need!

Add the following to your base.css. Follow the images if you're not familiar with the edit code page 🙂

@media screen and (min-width: 1024px) {
	.footer__blocks-wrapper .footer-block:nth-child(1) h2,
	.footer__blocks-wrapper .footer-block:nth-child(1) li {
		text-align: right !important;
		margin-right: 0 !important;
	}

	.footer__blocks-wrapper .footer-block:nth-child(2) h2,
	.footer__blocks-wrapper .footer-block:nth-child(2) li {
		text-align: center !important;
		margin-right: 0 !important;
	}
}
@media screen and (max-width: 768px) {
	.footer__blocks-wrapper .footer-block h2 {
		text-align: center !important;
	}
	.footer__blocks-wrapper .footer-block li a {
		justify-content: center !important;
	}
}

 Screenshot 2024-07-22 230019.pngScreenshot 2024-07-23 103512.png

Result:
2024-08-26 11_00_12-coming soon – Hayati Goods.png    2024-08-26 10_59_41-coming soon – Hayati Goods.png

♥ If you found my solution helpful, please consider giving it a Like and marking it as the ✔ Accepted Solution


Try our WhatsApp Chat Button Widget with multipe agents.Supachat: WhatsApp Chat Button


A Product of Maverick Studio

View solution in original post

Replies 3 (3)

MaverickStudio
Shopify Partner
101 32 34

This is an accepted solution.

Hey @yasmineb,

This is an easy and robust fix for the customization that you need!

Add the following to your base.css. Follow the images if you're not familiar with the edit code page 🙂

@media screen and (min-width: 1024px) {
	.footer__blocks-wrapper .footer-block:nth-child(1) h2,
	.footer__blocks-wrapper .footer-block:nth-child(1) li {
		text-align: right !important;
		margin-right: 0 !important;
	}

	.footer__blocks-wrapper .footer-block:nth-child(2) h2,
	.footer__blocks-wrapper .footer-block:nth-child(2) li {
		text-align: center !important;
		margin-right: 0 !important;
	}
}
@media screen and (max-width: 768px) {
	.footer__blocks-wrapper .footer-block h2 {
		text-align: center !important;
	}
	.footer__blocks-wrapper .footer-block li a {
		justify-content: center !important;
	}
}

 Screenshot 2024-07-22 230019.pngScreenshot 2024-07-23 103512.png

Result:
2024-08-26 11_00_12-coming soon – Hayati Goods.png    2024-08-26 10_59_41-coming soon – Hayati Goods.png

♥ If you found my solution helpful, please consider giving it a Like and marking it as the ✔ Accepted Solution


Try our WhatsApp Chat Button Widget with multipe agents.Supachat: WhatsApp Chat Button


A Product of Maverick Studio

yasmineb
Excursionist
19 0 4

This worked perfectly. Thank you!!

Vinsinfo
Shopify Partner
392 138 132

@yasmineb Please follow below steps to change the alignment for footer menu in mobile and desktop. Let me know whether it is helpful for you.

 

1. From admin go to "Online Store" -> "Themes".
2. Click "Customize" button from the current theme.
3. Click "Footer" section.
Vinsinfo_1-1724655393332.png
4. Then scroll down and paste the below code in the "Custom CSS" field and save changes.

 

.footer-block--menu:nth-child(1) * {
    text-align: right;
}
.footer-block--menu:nth-child(2) * {
    text-align: center;
}
.footer-block__details-content>li:not(:last-child) {
    margin-right: 0rem;
}
@media screen and (max-width: 750px) {
    .footer-block--menu .footer-block__heading {
        text-align: center;
    }
    .footer-block--menu .list-menu__item {
        justify-content: center;
    }
}

 

Vinsinfo_2-1724655403575.png

 

Result will be like,
Vinsinfo_0-1724655388187.png

 

 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support