Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1364798

    Hi
    When using a Background Video in a Color Section there is a checkbox option to ‘Hide Video on Mobile Devices. Is there a way to only hide on small screens, e.g. phone portrait, but still show on larger mobiles?

    many thanks

    Peter

    #1364847

    Hey envapk2,

    Thank you for the inquiry.

    This is possible but you have to directly modify the enfold/config-templatebuilder/avia-shortcodes/slideshow/slideshow.js > _prepareSlides function and adjust the condition located around line 215.

    if( this.isMobile )
    

    To check a tablet device, you can use the snippets provided in the following links.

    // https://stackoverflow.com/questions/50195475/detect-if-device-is-tablet
    // https://css-tricks.com/working-with-javascript-media-queries/

    Best regards,
    Ismael

    #1364876

    Hi Ismael

    Thanks for that info, I will try that out.

    many thanks

    Peter

    #1364935

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1364944

    Hi

    No, please close the topic. many thanks
    Petr

    #1364954

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Background Video Color Section’ is closed to new replies.