• Resolved mrmad

    (@mrmad)


    The problem with youtube videos can be seen here: https://www.morethanandroid.de/androidq

    I also noticed that if this plugin is enabled, embedded youtube videos will only be shown correctly once you scroll down and up again (visible on on mobile browsers like iOS).

    When loading for the first time aspect/position of the videos will be distorted.

    The theme author’s reply was:
    The theme adds a special class to videos to make them responsive. When you scroll down, you are loading the next post, and when the next post is loaded, the theme’s JavaScript is run to detect videos in the new post, and when it does that it finds the old video that wasn’t fixed so it fixes it.

    Because the plugin doesn’t load the video immediately, the theme doesn’t know it’s a video and doesn’t make it responsive.

    One solution is to ask them how you can add a custom class to their container:

    class=”cmplz-blocked-content-container cmplz-video”
    because if you can add this class:

    video-wrap
    so it looks like this:

    class=”cmplz-blocked-content-container cmplz-video video-wrap”
    it would fix it automatically. Hopefully they have an option to add custom classes.

    I have also contacted you via premium support but I haven’t received a reply. I checked the other threads here but the solutions do not help.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @mrmad,

    We will be with you shortly. When did you sent a request to our support? Through e-mail or our contactform? Please let me know, so I can have a look what went wrong.

    Regarding your question. We’ll be right back!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @mrmad,

    We’re working hard to make this compatible with as much themes as possible. This is quite challenging, as each theme seems to use a different method to get the video’s responsive.

    Possibly your theme uses fitvids for responsiveness. On consent, Complianz checks if fitvids needs to be initialized. Currently, it checks this by looking at the parent, and if it has the cmplz-video class, it triggers fitvids. If a div is inserted by the theme, this parent is this new div, and fitvids is not triggered.

    In the current beta version here:
    https://github.com/rlankhorst/complianz-gdpr
    the plugin does a more intelligent check, preventing issues when a theme inserts a div during pageload.

    Depending on the method your theme uses, this might resolve the issue.

    As alternative, I have added a filter in this beta which you can use to add the class as your theme author suggested:

    add_filter('cmplz_video_class','my_add_video_class');
    function my_add_video_class($class){
      $class .= ' video-wrap';
      return $class;
    }

    Let me know if this helps!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I’m afraid we were having email issues on the website, and haven’t received notifications on Thursday and Friday. Thanks for reaching out to us again. Right now the website support form is working again. Sorry for the inconvenience!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Yes, you can include it in the functions.php of your theme, or in a php file in the mu-plugins folder, which might be practical if you need to update your theme.

    Please note that you need to have updated to the current git version to be able to use this fix.

    If you’re a premium user, please contact me through support@complianz.io so I send you the beta of the premium.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    For pro or commercial product support please contact the author directly on their site. This includes any pre-sales topics as well.

    As the author is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘responsive youtube’ is closed to new replies.