Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Desktop Only Padding

Solved

Desktop Only Padding

PoW8
Explorer
60 1 11

IMG_6505.png

IMG_6506.png

 Hello, I’ve added a code for an accordion footer and the padding I’ve placed around my menu titles is fine. However when in the standard layout the menu headings are too close to the top. 

How do I add padding to the top of the footer on the non-mobile version only?(or rather any version that won’t adopt the accordion)

Accepted Solutions (2)

BSSCommerce-B2B
Shopify Partner
1969 564 566

This is an accepted solution.

@PoW8,

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media screen and (min-width: 750px) {
footer .footer__content-top {
   padding-top: 5rem!important;
}
}
</style>

Result:

BSSCommerceB2B_0-1728794980090.png

If it helps you, please like and mark it as the solution.

Best Regards 😊

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

TikitaTech
Shopify Partner
65 15 15

This is an accepted solution.

Awesome! You can solve this by adding Custom CSS to the Footer in Admin.

This method adds padding to the top of footer__blocks-wrapper when the screen is wider than 750px (when your accordion disappears).

 

Once in Admin, click Footer and go to the side bar.

 

2024-10-13T11_59_26,353872309+07_00.png

 

Add this Custom CSS:

 

2024-10-13T11_58_56,566207928+07_00.png

 

For copy and paste:

@media (min-width: 750px) {
  .footer__blocks-wrapper {
    padding-top: 1.5rem;
  }
}

 

This will achieve this:

 

2024-10-13T11_56_22,989510354+07_00.png

 

 Hope this helps!

Tikita Tolley | Co-Founder @ Daeda Technologies Ltd
Building apps to make tech simple.
Here to help - just ask!

View solution in original post

Replies 6 (6)

TikitaTech
Shopify Partner
65 15 15

Hi @PoW8!

Could you share your store password?

Tikita Tolley | Co-Founder @ Daeda Technologies Ltd
Building apps to make tech simple.
Here to help - just ask!
PoW8
Explorer
60 1 11

printsofwhatever.com

pw:teunti

TikitaTech
Shopify Partner
65 15 15

This is an accepted solution.

Awesome! You can solve this by adding Custom CSS to the Footer in Admin.

This method adds padding to the top of footer__blocks-wrapper when the screen is wider than 750px (when your accordion disappears).

 

Once in Admin, click Footer and go to the side bar.

 

2024-10-13T11_59_26,353872309+07_00.png

 

Add this Custom CSS:

 

2024-10-13T11_58_56,566207928+07_00.png

 

For copy and paste:

@media (min-width: 750px) {
  .footer__blocks-wrapper {
    padding-top: 1.5rem;
  }
}

 

This will achieve this:

 

2024-10-13T11_56_22,989510354+07_00.png

 

 Hope this helps!

Tikita Tolley | Co-Founder @ Daeda Technologies Ltd
Building apps to make tech simple.
Here to help - just ask!
PoW8
Explorer
60 1 11

Also valid. Especially in case Shopify updates start removing all code but custom CSS again.

BSSCommerce-B2B
Shopify Partner
1969 564 566

This is an accepted solution.

@PoW8,

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media screen and (min-width: 750px) {
footer .footer__content-top {
   padding-top: 5rem!important;
}
}
</style>

Result:

BSSCommerceB2B_0-1728794980090.png

If it helps you, please like and mark it as the solution.

Best Regards 😊

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

PoW8
Explorer
60 1 11

Thanks, this does exactly what I needed.