Help with GIF on 🏡 page

Solved

Help with GIF on 🏡 page

PRGMD
Visitor
3 0 2

66471f70-3ea8-49b5-9957-40d8dc3072b3.jpeg

 

IMG_6680.png

 

Ive added a GIF to my homepage on the mobile version it shows better than the website, but on the phone Ive also got a white strip at the bottom of my page I can’t seem to get rid of. On the phone it’s just close to the top of the page but on the computer version it’s way too big. 

Can anyone help me with this issue, please and thank youđŸ™đŸ»

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1972 564 567

This is an accepted solution.

@PRGMD,

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head>

 

<style>
#Banner-template--24020467286356__image_banner_WBF6Gz img {
  object-fit: contain;
}
#Banner-template--24020467286356__image_banner_WBF6Gz .banner__media {
  background: #000;
}
@media only screen and (min-width: 750px) {
#Banner-template--24020467286356__image_banner_WBF6Gz {
  min-height: 54vh;
}
}
@media only screen and (max-width: 749px) {
  #Banner-template--24020467286356__image_banner_WBF6Gz .banner__media {
    min-height: 61vh
  }
}
</style>

 

Result:

  • Desktop

BSSCommerceB2B_0-1729494003014.png

  • Mobile: BSSCommerceB2B_0-1729494302421.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

Replies 5 (5)

ZestardTech
Shopify Partner
6148 1100 1477

Hello @PRGMD 

Please share your store URL and password.
So that I will check and let you know the exact solution here.

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

Moeed
Shopify Partner
7715 2071 2550

Hey @PRGMD 

 

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>
body.gradient {
    background: black !important;
}
</style>

RESULT:

Moeed_0-1729493834699.png

 

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


rajweb
Shopify Partner
827 71 157

Hey @PRGMD ,

Fix the issue by Adding CSS: In  shopify, you can adjust the CSS to remove unnecessary white space.

Follow these steps:

1. Online Store > Themes 

2. Click Customize  and open Theme Settings.

3. Edit Code 

4. theme.css, styles.css.liquid, or similar CSS files.

5. Scroll to the bottom of the file and add the following CSS:

/* Remove extra space around GIF on mobile and desktop */
.gif-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure the GIF fills its container properly */
.gif-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fix white strip at the bottom */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.page-container {
    min-height: 100vh;
    box-sizing: border-box;
}

Let me know if the issue persists or if you need further help!

 

If I was able to help you, please don't forget to Like and mark it as the Solution!

Best Regard,

Rajat Sharma

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev

BSSCommerce-B2B
Shopify Partner
1972 564 567

This is an accepted solution.

@PRGMD,

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head>

 

<style>
#Banner-template--24020467286356__image_banner_WBF6Gz img {
  object-fit: contain;
}
#Banner-template--24020467286356__image_banner_WBF6Gz .banner__media {
  background: #000;
}
@media only screen and (min-width: 750px) {
#Banner-template--24020467286356__image_banner_WBF6Gz {
  min-height: 54vh;
}
}
@media only screen and (max-width: 749px) {
  #Banner-template--24020467286356__image_banner_WBF6Gz .banner__media {
    min-height: 61vh
  }
}
</style>

 

Result:

  • Desktop

BSSCommerceB2B_0-1729494003014.png

  • Mobile: BSSCommerceB2B_0-1729494302421.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

PRGMD
Visitor
3 0 2

Thanks I will give this a go later today and let you know if it works!