-
AuthorPosts
-
November 20, 2015 at 4:16 am #672627
Hi there,
Can you please tell me how to hide a Creative CTA from mobile devices?
I can’t seem to work out how to do this?
Is there a ‘hide-mobile’ code or something that i can apply to the element via style or something?
Thx a lot.
November 20, 2015 at 4:43 am #672644Hi there,
Thanks for writing in!
You can hide the section/row that contains the Creative CTA on mobiles under Hide Based On Screen Width in the section/row settings (see: http://prntscr.com/7vcrv2).
Thank you!
November 20, 2015 at 4:50 am #672663Hey there thanks.
The issue is that i dont want to hide the entire row, but just a singular CTA button….
How would I do that please?November 20, 2015 at 5:40 am #672708Hi,
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 & Smallereg.
If you want to hide your cta 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.
November 20, 2015 at 5:57 am #672722Thank you very much.
So for all smaller browsers would this look like this:
x-hide-xs, x-hide-md, x-hide-xs
In the Class?
November 20, 2015 at 6:40 am #672766Hi,
You can separate the class with just a space, please remove commas
eg.
x-hide-xs x-hide-md x-hide-sm
Thanks
November 20, 2015 at 6:44 am #672768THANKS SO MUCH REALLY APPRECIATE
November 20, 2015 at 8:24 am #672841You’re welcome! 🙂
-
AuthorPosts