Hey guys,
my question was already posted by other members but none of the tips helped me to find a solution.
Situation:
I have a fullscreen-layout and a color-section with a (fixed) background image that has the ID: “tapete”
My custom-css:
@media only screen and (max-width: 767px) {
#tapete {
display:none !important;
}
}
Problem:
this css hides/removes the whole section but NOT the background image.
Question:
what code removes the background image but keeps the content like headline and textblock on smartphone devices?
Thanks for your help!
Hey Nik,
Where are you adding the code? When I put your code in /wp-content/themes/enfold/css/custom.css the section was gone with the image. But this file can be edited via FTP or cPanel.
If you need further assistance please let us know.
Best regards,
Victoria
Hey Victoria,
thanks for your reply. I add the code into the custom css box in the “General Styling” section.
So the code is working and hides only the bg image but keeps the rest of the content?
So maybe i did not make a hard refresh on my phone?
I am using this code now, would you check that on a mobile device to see if this is working?
@media (max-width: 480px){
#boden, #tapete, #wand, #wasser, #schimmel, #lack {
background-image: none !important;
}
}
That would be awesome Victoria,
Thanks in advance!
Nik