How to align social icons with newsletter sign up in footer?

Topic summary

A user is customizing their Shopify store footer to align social icons horizontally with a newsletter signup form (using a third-party Substack widget). Currently, the social icons appear below the signup form on the left side.

Desired Layout:

  • Newsletter signup on the left
  • Social icons aligned to the right, on the same horizontal line
  • On mobile: centered signup form with social icons below

Solutions Provided:
Multiple users suggested adding CSS to the base.css file:

.footer__content-top {
  display: flex !important;
  justify-content: space-between !important;
}

For mobile responsiveness, one solution included a media query targeting screens 750px and wider.

Outcome:
The initial desktop alignment issue was resolved successfully. The user followed up asking for mobile-specific CSS adjustments to center the signup form and stack social icons below it when viewed on mobile devices. The discussion remains open regarding the mobile layout refinement.

Summarized with AI on November 20. AI used: claude-sonnet-4-5-20250929.

Hello there,

I am currently trying to organise my footer and use a custom api to sign up to a third party newsletter. This is its current look, with the sign up in the footer, aligned left and social icons underneath. The social icons are put on from within the footer customise page.

However, I want the social icons aligned on the right and in line with the subscribe sign up (see mockup image I made for how I want it to appear).


Currently, to get it into the footer as is, I have added this code to footer.liquid, starting at line 155, finishing at line 204.

The code that i’ve added to footer.liquid:

<!-- Substack sign up -->
        <div class="container">
          <h2 class="subscribe-text">Get a dose of motivation to your inbox</h2>
          <div id="custom-substack-embed"></div>
        </div>
        
        <style>
          .container {
            display: flex;
            flex-direction: column;
            align-items: left;
            text-align: left;
            padding-top: 30px;
          }
        
          .subscribe-text {
            margin-top: 10px;
            font-weight: normal;
          }
        
          /* Updated styles */
          .substack-button {
            border-radius: 0;
            background-color: #121212;
            color: #FFFFFF;
            border: 1px solid #7D7D7D;
          }
        
          .substack-input {
            background-color: #FFFFFF00;
            color: #FFFFFF;
          }
        </style>
        
        <script>
          window.CustomSubstackWidget = {
            substackUrl: "quotedvisually.substack.com",
            placeholder: "enter your email",
            buttonText: "Subscribe",
            theme: "custom",
            colors: {
              primary: "#7D7D7D",
              input: "#FFFFFF00",
              email: "#0E1014",
              text: "#FFFFFF",
            }
          };
        </script>
        
        <script src="https://substackapi.com/widget.js" async></script>

I also am looking for the line border etc of the code above to match that of the contact form from Shopify as well as being able to have full control over the width of the textfield where you put your email (but not sure if this is possible and if it is predefined from where I got the widget).

Website link: www.quotedvisually.myshopify.com

Password: Han

Any help would be greatly appreciated.

Thanks in advance.

Jonathan

Hi @JHarrisQV

This is Lucas 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 base.css

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

.footer__content-top {

display: flex !important;

justify-content: space-between !important;

}

Hope that my solution works for you.

Best regards,

Lucas| PageFly

1 Like

@JHarrisQV - add this css to the very end of your base.css file and check

@media screen and (min-width:750px){
.footer__content-top{display: flex;  justify-content: space-between;}
}

Hi @JHarrisQV ,

Goto edit code and add below mentioned code in base.css file

.footer__content-top {

display: flex !important;

justify-content: space-between !important;

}

This is great, thank you Lucas for the help!

1 Like

Thanks @websensepro , worked a treat!

1 Like

You are welcome @JHarrisQV :blush:

Hi Lucas,

Sorry to continue on, I just wanted to see if you could clarify. When on mobile, I am hoping to make it cleaner

Is it possible to add any css that makes the alignment change on mobile? it currently does this…

I’d love for the subscribe box and title there to be centered and then the social icons below, but only when viewing on mobile.

Sorry to continuing asking!

Does that make sense?

Jonathan