Hi there!
which code do I have to add to the Quick CSS if I want te hide the grey overlay but display the caption om mobile devices?
If I use:
@media only screen and (max-width: 767px) {
.av-inner-masonry-content.site-background {
opacity: 0 !important;
}
}
Nothing is displayed and I want only the caption (title) to be displayed.
Thanks for your help!
regards, Hugo
Hi Hugo,
Could you post a link to where we can inspect the element in question on your site please?
Best regards,
Rikard
Hi Rikard,
I’ve removed the addition to the Quick CSS
thanks in advanced: https://publiekeversnellers.nl/
Regards,
Hugo
Hi,
Try this code in the General Styling > Quick CSS field:
@media only screen and (max-width: 767px) {
#top .av-caption-style-overlay .av-masonry-item-with-image .av-inner-masonry-content {
background: rgba(0,0,0,0)!important;
}
}
Best regards,
Mike
Thanks Mike! That works just fine!
Another question. If I don’t want to show the caption/title from an specific masonry item on mobile. What code should I add to the Quick CSS?
Example: I’ve already added this code to not link an item in the masonry to a single portfolio item with this code:
.av-masonry-container a.post-658 {
pointer-events: none;
}
Thanks in advance!
Hi,
Please try:
.post-456 .av-inner-masonry-content-pos-content {display:none!important;}
Best regards,
Mike
Hi Mike,
do you want me to add this inside code?:
@media only screen and (max-width: 767px) {
#top .av-caption-style-overlay .av-masonry-item-with-image .av-inner-masonry-content {
background: rgba(0,0,0,0)!important;
}
}
Hi,
Sorry, I see you wanted this to hide the title only on a mobile, so I should have added the media query:
@media only screen and (max-width: 767px) {
.post-456 .av-inner-masonry-content-pos-content {display:none!important;}
}
You could add it to the other one if you wish.
Best regards,
Mike
Thanks! Works just fine :-)