-
AuthorPosts
-
September 11, 2015 at 1:27 pm #501608
Hi all,
The following issue has been addressed a couple of times on this forum, but unfortunately none of them seem to be working for me. Hence I´m addressing it once again.
I have two background images of a person featured on branspyre.nl. I like to see them removed on any tablet or phone as they clearly interfere with the content on smaller screens.
The section name that has the female shown, is named: waarom
When I add the following to Quick CSS,
@media (max-width: 989px) { #waarom { background-image: none !important; } }
, the image becomes hidden when I scale my browser on my laptop below the specified threshold. On my tablets or smartphone (different OS), however, the image is still displayed even after clearing the cache.
I´d appreciate it if someone could take a look at this issue.
If you need any further information, please let me know.Kind regards,
Ruud- This topic was modified 9 years, 1 month ago by ruuddekeijzer.
September 11, 2015 at 4:20 pm #501763Hey ruuddekeijzer!
Add this to your custom CSS.
@media screen and (max-width: 989px) { #waarom, #referenties { background: none !important; } }
Cheers!
Elliott- This reply was modified 9 years, 1 month ago by Elliott.
September 11, 2015 at 4:32 pm #501774He Elliott,
Nice try, but unfortunately, the image is now not only shown on tablets/phone, but also on my laptop when I scale my browser. Could it be that some other custom CSS code interferes with the ones suggested?
Here´s all the code I´ve been using for this site:
.header_color .header_bg {
opacity: 1 !important;
}
#main .main_color .content {
padding-bottom: 10px;
padding-top: 10px;
}
body {
font-size: 17px;
}
.avia-image-container-inner {
box-shadow: 0 0 10px #808080, 0 0 0 1px #eeeeee;
padding: 0px;
}
#top .av-siteloader-wrap {
background-color: white !important;
}
.noborder{
border: none !important;
background: transparent !important
}
@media screen and (max-width: 989px) { #waarom, #referenties { background; none !important; } }If you require any further information, please let me know.
Awaiting round 2 ;)
Ruud
September 12, 2015 at 3:33 am #501923Hi!
Please replace the code with this:
@media screen and (max-width: 989px) { .avia_mobile #waarom, .avia_mobile #referenties { background; none !important; } }
The code should be applied on mobile devices only.
Cheers!
IsmaelSeptember 12, 2015 at 4:09 pm #502133Hello Ismael,
Sorry no good.
I also did a trial with no custom CSS code, except the ones you guys are suggesting, but unfortunately, to no avail.Hope your bags of tricks aren´t empty yet!
Regards,
RuudSeptember 14, 2015 at 5:36 am #502470Hi!
My bad. Instead of colon, I added a semi-colon after the background property. We modified the code:
@media screen and (max-width: 989px) { .avia_mobile #waarom, .avia_mobile #referenties { background: none !important; } }
Regards,
IsmaelSeptember 15, 2015 at 11:14 am #503194Hi all,
The code works on my laptop, when I scale/rezise my webbrowser. On my tablet and phone, on the other hand, it does unfortunately not work.
Would the solution be to hide the specific images (the file names) in a mobile environement?
Kind regards,
RuudSeptember 15, 2015 at 1:44 pm #503333Hi,
If it works on desktop it will work on other devices as well, please try to flush your browser cache and reload a few times to see if that helps.
Best regards,
RikardSeptember 16, 2015 at 6:41 pm #504327He Rikard,
Flushed it, reloaded, but still not working, whilst other changes implemented are visible on all (mobile) devices. Could you please verify if the concerning backgrounds are hidden on your mobile device?
Kind regards,
RuudSeptember 17, 2015 at 6:28 am #504514Hey!
The background is displaying on my iPod when I checked it so I guess the solutions are not working. Please try this instead:
@media screen and (max-width: 989px) { .avia-android #waarom, .avia-android #referenties, .avia-ipad #waarom, .avia-ipad #referenties, .avia-iphone #waarom, .avia-iphone #referenties { background: none !important; } }
What is this code for?
@media screen and (max-width: 767px) { #waarom, #referenties { background: transparent !important; } }
Please remove it.
Cheers!
IsmaelSeptember 18, 2015 at 9:01 am #505292Hello Ismael and others,
No, not working either. I really appreciate all the effort that is put into this matter, but perhaps there simply is no easy solution to this. Hence I shall remove these images – no problem whatsoever.
Kind regards,
RuudSeptember 21, 2015 at 4:44 am #506170Hey,
Not sure if you got this fixed or not, or did you go for a different solution? Please let us know if you should need any more help on the topic.
Thanks,
RikardSeptember 21, 2015 at 10:24 am #506316Hello Rikard,
I kind of gave up on this issue and removed the concerning backgrounds altogether (www.branspyre.nl). Which is OK.
I continue to use Enfold and appreciate the support that comes along with the Theme.Kind regards,
Ruud -
AuthorPosts
- The topic ‘Hide background image for specific sections on mobile devices’ is closed to new replies.