Edit container in image banner (Dawn 9.0). Remove corner-radius in mobile version.

Edit container in image banner (Dawn 9.0). Remove corner-radius in mobile version.

Roxolot
Explorer
67 4 13

Screenshot 2023-05-25 182802.png

 

I used the code below to transform the banner_box in desktop version of the website. I would like to remove the border-radius and the other settings of the banner_box in mobile version. Unfortunately, the code does not work. I have inserted the code above in the file section-image-banner.css

Does anyone know what the error is and can help me?

 

 

 

.banner__box {
  border-radius: 21px !important;
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.2);
  opacity: 0.9; 
}

@media only screen and (max-width: 749px) {
  .banner__box {
    border-radius: none;
    box-shadow: none;
    opacity: none;
  }
}

 

 

 

Replies 5 (5)

Akibhusen
Shopify Partner
715 121 149

@Roxolot, all cool in the code. You just have to add  !important; in a media query. Because you have added !important for border-radius. to override the !important property in mobile view you have to override that in media query as well with !important. Please refer below code for a better idea.

 

.banner__box {
  border-radius: 21px !important;
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.2);
  opacity: 0.9; 
}

@media only screen and (max-width: 749px) {
  .banner__box {
    border-radius: none !important;
    box-shadow: none;
    opacity: none;
  }
}
Roxolot
Explorer
67 4 13

Thank you for your respones. I have changed the code, but it still does not work.

.banner__box {
  border-radius: 21px !important;
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.2); 
}

@media only screen and (max-width: 749px) {
  .banner__box {
    border-radius: none !important;
    box-shadow: none;
  }
}

Do you have any other ideas?

Akibhusen
Shopify Partner
715 121 149

Could you please share your store URL? So, I can check and let you know what the issue is.

 

Also, try the below updated CSS.

 

.banner__box {
  border-radius: 21px !important;
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.2); 
}

@mediamax-width: 749px) {
  .banner__box {
    border-radius: none !important;
    box-shadow: none;
  }
}

Made4uo-Ribe
Shopify Partner
10092 2398 3030

Hi @Roxolot ,

Would you mind to share your URL website with password? 

Thanks!

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.

oscprofessional
Shopify Partner
16366 2440 3188

Hello @Roxolot 

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

.content-container {
    border-radius: 0px !important;
}

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...