-
AuthorPosts
-
March 27, 2018 at 8:47 pm #933871
It seems like it’s doing the opposite (appearing when the screen is smaller).
The code I have in Quick CSS:
/*HIDE ON DESKTOP*/ #gridrowresearchagenda{display: none !important;} @media only screen and (max-width: 767px) { /*HIDE ON MOBILE*/ #codeblockresearchagenda{display: none !important;} /*SHOW ON MOBIL*/ #gridrowresearchagenda{display: block !important;} }Thank you for your help!
March 27, 2018 at 8:48 pm #933874The section in this case is #codeblockresearchagenda
March 27, 2018 at 10:05 pm #933897Hi,
Can you screenshot the section? Is this on the homepage?
Best regards,
Jordan ShannonMarch 28, 2018 at 3:16 am #933980My apologies, here is the URL:
The first section appears when you shrink the browser window, it should be the opposite.
The second section and so forth on the page is working properly (they appear on mobile and are collectively named #gridrowresearchagenda)
March 28, 2018 at 4:54 am #933999Hi,
It looks like you have 7 sections with the same ID #gridrowresearchagenda, basically your whole page, yet I don’t find and sections with the ID #codeblockresearchagenda ?
Your code above says to hide #gridrowresearchagenda for all sizes above 767px, and show below (mobile).
If you want to do the opposite and only show #gridrowresearchagenda above 767px, please remove all of the above code and try:@media only screen and (max-width: 767px) { #gridrowresearchagenda{display: none !important;} }If you add a ID #codeblockresearchagenda and you only want to show on mobile please add:
@media only screen and (min-width: 767px) { #codeblockresearchagenda {display: none !important;} }Best regards,
MikeMarch 28, 2018 at 7:39 pm #934460I believe the first section was labeled incorrectly.
It’s working perfectly now, thank you so much for troubleshooting!
March 28, 2018 at 7:47 pm #934464Hi,
I’m glad you got this corrected. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Hide Section on Mobile not Working’ is closed to new replies.
