I would like to hide a section from my homepage on mobile

Steel-23
Tourist
18 0 3

Yep still showing both i can just hide both im not sure if its because i have them made as 2 different sections, the bottom one is usp footer but then it hid them both so must be named the same somewhere

0 Likes

i see that you place it in wrong layout, just delete code which i sent you previously, and add this one to the bottom of theme.scss

 

@media ( max-width: 767px ) {
  .index-section--flush:first-of-type{
   display: none;
}
}

 

0 Likes
Steel-23
Tourist
18 0 3

still hides both iv attached screenshot

0 Likes

You set it to the wrong place, it should be in theme.scss file in folder which calls 'assets',
but if you wish keep it in theme liquid, it should be placed here: Screen Shot 2021-06-24 at 2.09.26 PM.png

0 Likes
Steel-23
Tourist
18 0 3

I moved but still not working lol, i do not have this theme.scss file either : (

 

i can just keep both sections hidden for now thank you so much for your help though! so helpful

0 Likes

You are welcome, i will check this issue a bit later : ) 

0 Likes