home padding and space adjustment on mobile only

Solved

home padding and space adjustment on mobile only

abghadban
Excursionist
24 0 1

Hey I need help adjusting a home section on mobile only, on desktop its perfect, I want to remove the side padding and I want all the pictures to be stuck together like no white space between pictures or on the sides, Im using ella theme. Thank you so much ( 

IMG_2013.PNG

IMG_2012.PNG

 

The next picture is from another website, thats how I want it to be. 

  

IMG_2014.PNG

Accepted Solution (1)

Moeed
Shopify Partner
7354 1993 2432

This is an accepted solution.

Hey @abghadban 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.section-block-template--18446778597595__spotlight_block_AF7tMW .container-full, .section-block-template--18446778597595__163221535239da03ba .container-full {
    padding: 0 !important;
}
.halo-item {
    margin-top: 0 !important;
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

 

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
10102 2399 3033

Hi @abghadban 

Try this one. 

 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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 (max-width: 749px){
.section-block-template--18446778597595__163221535239da03ba .container-full,
.section-block-template--18446778597595__spotlight_block_AF7tMW .container-full {
    padding: 0;
}

div#block-702bd0c5-dea1-41a7-bfa1-ae68809d92ad, div#block-image_Kz4Wy8 {
    margin-top: 0;
}
}

 

  • And Save.
  • Result:

     

    Made4uoRibe_1-1730218988139.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
abghadban
Excursionist
24 0 1

hey thanks for your reply, the margin top worked but the side paddings still the same 

Moeed
Shopify Partner
7354 1993 2432

This is an accepted solution.

Hey @abghadban 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.section-block-template--18446778597595__spotlight_block_AF7tMW .container-full, .section-block-template--18446778597595__163221535239da03ba .container-full {
    padding: 0 !important;
}
.halo-item {
    margin-top: 0 !important;
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

 

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


abghadban
Excursionist
24 0 1

hey thank you so much this worked!

Moeed
Shopify Partner
7354 1993 2432

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications