# Center social media icons and decrease padding in footer?

**URL:** <https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600>\
**Category:** Store Design\
**Tags:** footer, css\
**Created:** [February 19, 2025, 12:40am UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600 "2025-02-19T00:40:06Z")\
**Posts on this page:** 8\
**Page:** 1

## AI-generated summary

A user inherited a Shopify store and needed help customizing the footer's social media icons: centering them, increasing their size, and reducing padding to 50px top/bottom.

**Solutions Provided:**

Multiple developers offered CSS-based solutions, primarily involving:
- Adding custom CSS to `theme.liquid` (before `</head>` tag) or `theme.css`
- Using flexbox properties (`display: flex`, `justify-content: center`) to center icons
- Adjusting `font-size` to increase icon size
- Modifying `padding` and `margin` values to reduce spacing

**Resolution:**

The user successfully implemented one solution from topnewyork, which centered the icons. A follow-up code snippet addressed remaining excessive spacing below the icons. The issue was fully resolved through these CSS modifications.

**Key Technical Details:**
- Target classes: `.Footer__Social`, `.HorizontalList__Item`, `.Footer__Block`
- Screenshots were shared showing before/after results
- Solutions required editing theme files in Shopify's code editor

<div class="post-metadata">

**Author:** ![jasminsharp97](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/jasminsharp97/32/270559_2.png) [@jasminsharp97](https://community.shopify.com/u/jasminsharp97)\
**Post date:** [February 19, 2025, 12:40am UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/1 "2025-02-19T00:40:06Z")

</div>

I inherited this site from someone, and there seems to be some weird custom parts of the site that I don’t understand. I want to have the social media icons in the footer be centered and I want them to be a bit bigger and I want there to be much less padding, like only 50px on the top and bottom. How do I do that?

Site: [https://uawk2j-gn.myshopify.com/](https://uawk2j-gn.myshopify.com/)

Password: lewfru

---

<div class="post-metadata">

**Author:** ![B2Bridge](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/b2bridge/32/340033_2.png) [@B2Bridge](https://community.shopify.com/u/B2Bridge)\
**Post date:** [February 19, 2025, 2:10am UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/2 "2025-02-19T02:10:45Z")

</div>

Hi @jasminsharp97

I hope you are well. You can follow our instructions below:  
1/ Shopify admin \> Online store \> Edit code  
2/ Search for “theme.liquid” file  
3/ Open the file and search for tag and add the following code above tag

Here is the code for Step 3:

```javascript
{% style %}
.Footer __Block.Footer__ Block--text{
    margin-bottom: 0 !important;
}
ul.Footer__Social.HorizontalList.HorizontalList--spacingLoose{
    display: flex !important;
    justify-content: center !important;
}
li.HorizontalList__Item > a.Link Link--primary {
    font-size: 20px !important; /* Adjust size as needed */
    margin: 0 15px !important; /* Spacing between icons */
}
{% endstyle %}

```

 ![Screenshot_5.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/0/1/01c4503e87718041692c054dcaa551147b24199d.jpeg)

If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you 😍

---

<div class="post-metadata">

**Author:** ![LizHoang](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/lizhoang/32/159214_2.png) [@LizHoang](https://community.shopify.com/u/LizHoang)\
**Post date:** [February 19, 2025, 3:26am UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/3 "2025-02-19T03:26:20Z")

</div>

Hi @jasminsharp97

You can try to follow this step  
Step 1: Go to **Edit code**  
Step 2: Find file **theme.css** and add this code **at the end of the file**

```markup
@media screen and (min-width: 641px) {
    .Footer {
        padding: 0 !important;
    }
    .Footer __Inner+.Footer__ Aside {
        margin-top: 0 !important;
    }
}

```

Result:

 ![LizHoang_0-1739935571940.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/1/4/147b85423c0d5b06979a5da7dd3fb6108fe99789.png)

Best,

Liz

---

<div class="post-metadata">

**Author:** ![topnewyork](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/topnewyork/32/55225_2.png) [@topnewyork](https://community.shopify.com/u/topnewyork)\
**Post date:** [February 19, 2025, 6:18am UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/4 "2025-02-19T06:18:18Z")

</div>

Hi @jasminsharp97

1. Go to Online Store → Theme → Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before 

```markup

```

If my reply is helpful, kindly click like and mark it as an accepted solution.  
Thanks!

Use our Big Bulk Discount app to boost your sales!([https://apps.shopify.com/big-bulk-discount](https://apps.shopify.com/big-bulk-discount)). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

---

<div class="post-metadata">

**Author:** ![jasminsharp97](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/jasminsharp97/32/270559_2.png) [@jasminsharp97](https://community.shopify.com/u/jasminsharp97)\
**Post date:** [February 20, 2025, 1:35am UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/5 "2025-02-20T01:35:24Z")

</div>

That worked, thank you! There’s still a lot of space underneath the icons though, do you know how to get rid of all of this space? Or can we make the icons bigger to make them stand out more if we can’t get rid of that space?

 ![Screenshot 2025-02-19 173417.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/0/a/0a3bf5627b56b00d9e1317ebfec2925935fbf5df.png)

---

<div class="post-metadata">

**Author:** ![topnewyork](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/topnewyork/32/55225_2.png) [@topnewyork](https://community.shopify.com/u/topnewyork)\
**Post date:** [February 20, 2025, 6:26am UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/6 "2025-02-20T06:26:36Z")

</div>

@jasminsharp97 This is a great thing that your code is working. Now, apply this code and see if your spacing issue also gets resolved.

```markup

```

**Note: If possible, mark both of my solutions.**  
Thanks!

---

<div class="post-metadata">

**Author:** ![jasminsharp97](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/jasminsharp97/32/270559_2.png) [@jasminsharp97](https://community.shopify.com/u/jasminsharp97)\
**Post date:** [February 20, 2025, 3:24pm UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/7 "2025-02-20T15:24:08Z")

</div>

That worked, thank you so much!!!

---

<div class="post-metadata">

**Author:** ![EFOLI-Syn](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/efoli-syn/32/19237_2.png) [@EFOLI-Syn](https://community.shopify.com/u/EFOLI-Syn)\
**Post date:** [October 10, 2025, 6:02pm UTC](https://community.shopify.com/t/center-social-media-icons-and-decrease-padding-in-footer/395600/8 "2025-10-10T18:02:13Z")

</div>

Hello @jasminsharp97,

Regarding requirement, you can open theme.css, base.css, or footer.css (depending on the theme) and add the following code:

```auto
 /* Resize and space out social icons */ 
 li.HorizontalList__Item > a.Link { 
display: flex !important; 
align-items: center !important;
justify-content: center; 
gap: 15px; 
font-size: 20px !important; }

/* Center the social media icons */ 
ul.Footer__Social.HorizontalList.HorizontalList--spacingLoose { 
display: flex !important; 
justify-content: center !important; 
align-items: center !important; 
padding: 50px 0 !important; }

  /* Reduce bottom margin for footer block */ 
.Footer__Inner{
Margin: 0px !important;}

```
