Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #839581

    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.

    #839746

    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

    #840002

    @Rikard,
    Thanks! I will give it a try and let you know.

    #840106

    Hi,

    Sure, just post back in this thread once you tested it. We will keep this thread open :)

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.