Solved

I need my footer menu items to sit side by side horizontally, no matter if on desktop or mobile

rnogueira
Tourist
11 0 1

Hello,

 

I just need help with my footer menu. On desktop, the last item in the menu falls into a new row underneath.

And on mobile, all of the footer items are stacked vertically. Here is how it currently looks on desktop:

 

rnogueira_0-1713905939322.png

 

 

I want everything to sit side by side horizontally, no matter how small the font size must be.

Maybe on mobile, there could be two rows of items.

 

My site is https://civillain.co/

And the password is applepayday

 

Please help

Accepted Solution (1)

PageFly-Richard
Shopify Partner
4287 973 1627

This is an accepted solution.

Hi @rnogueira 

 

This is Richard 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>
@media (max-width: 767px) {
.footer-block__details-content {
        display: flex !important;
        flex-wrap: wrap !important;
        column-gap: 10px !important;
        justify-content: center !important;
}
}
</style>
 

PageFlyRichard_0-1713922273722.png

Hope this can help you solve the issue 

 

Best regards,

Richard | 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.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
6076 1461 1800

Hi @rnogueira 

Do you mean like this? 

Made4uoRibe_0-1713907753451.png

Made4uoRibe_1-1713907769251.png

If it is 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 (min-width: 749px){
.footer-block.grid__item.footer-block--menu {
    max-width: 100%;
}
.footer__content-top.page-width {
    padding: 0px;
}
}
@media only screen and (max-width: 749px){
.footer-block__details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
}

 

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.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


rnogueira
Tourist
11 0 1

Thank you for the reply, but I mean for all of the menu items to be side by side, just like the photo that you attached:

rnogueira_0-1713908209233.png

I would like for all of the menu items to lay horizontally on both desktop and mobile. It is fine if it automatically shrinks the font size

rnogueira
Tourist
11 0 1

I found this code that works and i put it in my theme.liquid file:

    <style>
@media screen and (max-width: 767px){
.footer__content-top {
    padding-bottom: 3rem;
    padding-left: calc(1rem / var(--font-body-scale)) !important;
    padding-right: calc(1rem / var(--font-body-scale)) !important;
}
ul.footer-block__details-content.list-unstyled {
display: flex;
    justify-content:space-evenly;
}
ul.footer-block__details-content.list-unstyled * {
    font-size: 10px !important;
}
}
</style>

 

How do I wrap it to two rows? Instead of the all in one row?

PageFly-Richard
Shopify Partner
4287 973 1627

This is an accepted solution.

Hi @rnogueira 

 

This is Richard 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>
@media (max-width: 767px) {
.footer-block__details-content {
        display: flex !important;
        flex-wrap: wrap !important;
        column-gap: 10px !important;
        justify-content: center !important;
}
}
</style>
 

PageFlyRichard_0-1713922273722.png

Hope this can help you solve the issue 

 

Best regards,

Richard | 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.

rnogueira
Tourist
11 0 1

Thank you so much! This works beautifully!