Tagged: x
-
AuthorPosts
-
June 14, 2016 at 9:19 am #1041440
Johan vParticipantHi there,
It’s about this page: http://studio2harkema.nl/studio-2-harkema/
The second image (the woman image with a lower opacity), i would like to hide it when visitors are viewing it on mobile.Is that possible?
– Johan
June 14, 2016 at 10:21 am #1041524
RahulModeratorHi,
For elements in cornerstone, you can use the class field to add visibility classes
Classes:
x-hide-xl – Extra Large | 1200px & Up
x-hide-lg – Large | 980px – 1199px
x-hide-md – Medium | 768px – 979px
x-hide-sm – Small | 481px – 767px
x-hide-xs – Extra Small | 480px & SmallerSo if you want to hide your image element in mobile you can add x-hide-xs class in the class field of your image element.
http://screencast.com/t/lHetWx8GDLN9
You can do the same for other elements.
Note: You need to enable advanced controls for the class field to appear.

Hope that helps.
June 14, 2016 at 5:08 pm #1042211
Johan vParticipantHi there Rahul,
I don’t get that one as you can see here: http://puu.sh/psUDM/52cda62b66.jpg
I know the:x-hide-xl – Extra Large | 1200px & Up
x-hide-lg – Large | 980px – 1199px
x-hide-md – Medium | 768px – 979px
x-hide-sm – Small | 481px – 767px
x-hide-xs – Extra Small | 480px & SmallerBut there seem no option for that background image
June 15, 2016 at 3:01 am #1042825
RupokMemberHey Johan,
Thanks for updating. So you want to hide the background image only, for mobile? In that case you can add this under Custom > CSS in the Customizer.
@media only screen and (max-width: 767px) { .page-id-79 #x-section-1 { background: #fff!important; } }Hope this helps.
Cheers!
June 17, 2016 at 8:31 am #1047012
Johan vParticipantThank you so much Rupok!
Makes my day!June 17, 2016 at 10:21 am #1047138
JoaoModeratorGreat to hear it
Let us know if you need help with anything else.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1041440 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
