Tagged: full width button, mobile settings
I currently have the link in my full-width button to open in a lightbox on both desktop and mobile sites. I would like to change the link to open in a new window only when using a mobile device. Is there a short CSS code I could use to accomplish this?
Thanks in advance.
Hey JPOsteen,
That is not possible with CSS unfortunately, maybe you could try to duplicate the element and hide the other one for mobile? You can add classes to the elements if you follow this: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Then you can add something like this to Quick CSS:
@media only screen and (max-width: 767px) {
.show-for-mobile {
display:block;
}
.show-for-desktop {
display:none;
}
}
@media only screen and (min-width: 768px) {
.show-for-mobile {
display:none;
}
.show-for-desktop {
display:block;
}
}
Best regards,
Rikard
@Rikard,
Thanks! I will give it a try and let you know.
Hi,
Sure, just post back in this thread once you tested it. We will keep this thread open :)
Best regards,
Nikko