Media Queries...

rezerekted
Shopify Partner
12 0 3

Hey guys,

 

This is driving me crazy and I can't seem to find a solution. I'm using the Effortless theme and no matter what I do I can't add a working media query! i have tried everything, including adding my media queries in the theme file! All my other CSS works perfectly. Is there something the theme authors have added? I'd ask them but I've tried contacting them twice with no luck. For instance, the little red guy in the newsletter section is supposed to disappear at 1216px (just testing to see if it will work). Display:none;. Nothing. As a matter of fact, no media queries that I've done work, yet there are media queries that the authors wrote that do! what am I doing wrong? someone please provide an explanation. They just will not work on the screen sized specified. Thanking you in advanced!

preview: https://the-mighty-luchador.myshopify.com/?_ab=0&_fd=0&_sc=1

pass: luch

 

L

 

 

Replies 4 (4)
topnewyork
Explorer
153 22 19

Hi, @rezerekted 

Can you please send image what you have to edited in specific screen

Need a Shopify developer?
Hire us at topnewyorkwebdesign.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
rezerekted
Shopify Partner
12 0 3

It’s on the preview. The head in the newsletter sign up “senior fuego”. Thanks!

Made4uo-Ribe
Shopify Partner
4111 941 1147

Hi @rezerekted 

Check this one. 

 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • 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 (min-width:1216px){
div#template--21415014629649__1650380133cbca88b1 {
    display: none;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699977333309.png
  • Made4uoRibe_1-1699977398494.png
  • And before you paste that one in the base.css file. Clean first you file. 
  • Made4uoRibe_2-1699977487766.png

    change it on curly bracket, and delete unnecessary codes.

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


rezerekted
Shopify Partner
12 0 3

Thanks man!

Hopefully this will work. I will try each thing and let you know. Thanks again!