Okay
  Public Ticket #1468021
Youtube Parameters
Closed

Comments

  • daniarts started the conversation

    Dear support,

    I insert Youtube Video into the blog post section via the ID. Nevertheless I like to alter the parameters in order to hide text info and related videos. I found articles which describe that I should add Costume JS Code, which I tried (e.g. this one to hide the info:

    $j(".wpb_video_wrapper iframe").each(function() {
      var tubesrc = $j(this).attr("src");
      $j(this).attr("src", tubesrc + "&showinfo=0");
      $j(this).src += "&showinfo=0";
    });

    But nothing happens. I cleared cache, tried Firefox and IE but nothing. No plugins installed so far (besides under construction). What I'm doing wrong? What files hold the function to generate the link?

    Cheers,

    Daniel

    Attached files:  costum js.JPG
      video adding.JPG

  • daniarts replied

    Here also the website after the change. Nothing changed in the iframe URL.

    Attached files:  result.JPG

  •  397
    Qode replied

    Hi there,

    We can't access your website since it is in maintenance mode, so we can't see if there is some error in that code, but you can try some plugin in order to remove related videos like maybe this one https://sr.wordpress.org/plugins/hide-youtube-related-videos/

    Best Regards!

  • daniarts replied

    I solved it. My class is not wpb_video_wrapper but fluid-width-video-wrapper. Are there different classes which change with the responsive design?

  •  899
    Qode replied

    Hello Daniel,

    1. Thanks for feedback. We are glad that you have solved it by yourself.

    2. We don't think so that classes are different, but we can inspect this if you provide us with direct link to the page where video is added. Also, provide us with WP admin link, username and password (make sure that reply is set to PRIVATE).

    The new and improved Online Bridge Documentation is live. Check it out now - LINK

    Best Regards,
    Qode

  •  3
    Todd replied

    Hi all

    I tried the code you suggested but I didn't get it to work either.

    $j(".fluid-width-video-wrapper iframe").each(function() {
      var tubesrc = $j(this).attr("src");
      $j(this).attr("src", tubesrc + "&showinfo=0");
      $j(this).src += "&showinfo=0";
    });
    

    I've tried this in "Custom JS" field as well as "Raw JS" on the individual page.

    No luck.

    Any advice?
    Todd

  •  3
    Todd replied

    Hi again

    So, we got this to work:

    $j(".wpb_video_wrapper iframe").each(function() {
      var tubesrc = $j(this).attr("src");
      $j(this).attr("src", tubesrc + "&showinfo=0" + "&rel=0");
      $j(this).src += "&showinfo=0" + "&rel=0";
    });
    

    You can see it at http://bit.ly/2HBBteL

    What's odd though is that the "info" displays on initial page load and then refreshes and removes it. Any way to get rid of the "info" the first time instead of doing a reload?

    Thanks,
    Todd

  • daniarts replied

    I'm going live in a few days. If I still have the problem I will post again. 

    I found general problems with the templates option. I had to deactivate Page transition in the General Qode Options. My permalink setting is user devined to this: /%category%/%postname%/. With this setting the Java Script code is not injected right. This is also true for the progress map plugin which does not load the maps correctly or better the custome stile if this option is activated. 

    Any solution to have page transitions on and use the injestion of e.g. this Youtube Code?

  •  1,186
    Qode replied

    Hi Todd, 

    Thank you for the update. Unfortunately there is no other solution, the JS script needs some time to be executed. 

    Best regards, 

    Qode

    * The new and improved Online Bridge Documentation is live. Check it out now - http://bridge.qodeinteractive.com/

    * You can also check our articles with useful tips and suggestions

    Best Regards,

    Qode

  •  1,186
    Qode replied

    Hi daniarts, 

    Please test your plugins - deactivate all third party plugins except bundled plugins ( WPBakery, Layer Slider..) and see if it helps. If the issue disappears, activate your plugins one by one and try to find the plugin that causes the issue. If the problem persists please describe it in more detail, send us a screenshot and we'll try to reproduce it at our end. Thank you. 

    Best regards, 
    Qode

    * The new and improved Online Bridge Documentation is live. Check it out now - http://bridge.qodeinteractive.com/

    * You can also check our articles with useful tips and suggestions

    Best Regards,

    Qode

  • daniarts replied

    Hi Qode,

    I just referred to the permalink structure because you say in Global Settings: 


    "Page transition: In order for animation to work properly, you must choose "Post name" in permalink settings".

    Fact is as soon as I activate any transition the JavaScript in the Custom JS field (also Global Options) does not longer work (just if I load the page for the first time or reload, but not if I navigate through the page using the navigation and the transition effect is visible). Deactivating Plugins does not help. As an effect I have to deactivate this option in order to alter the Youtube player view permanent. I read this in other threads as well - seems to be a bug.

    Affected is also the plugin Progress Map, which seems to use a similar approach to load the whole content. Reload/Refresh a page does load correct, just use website navigation with page transition on does not load the map correct.

    Thus I had to switch off page transition for now completely. Screenshots do not help here you can easy test this yourself.

    Cheers, Daniel



  •  1,186
    Qode replied

    Hi Daniel, 

    Sorry for a late reply. 

    Just like third party plugins, custom JS can create the conflict with Page Transition feature and cause loading issues. Please backup your custom JS, remove it from theme options and see if the problem persists. 

    As for the Progress Map, this plugin is not officially supported and we haven't tested it with Bridge. If it conflicts with Page Transition, the only way to keep using this plugin is to deactivate Page Transition animation. 

    If you want us to take a closer look please describe exact steps to reproduce the problem, send us login URL and temporary WP admin access in a PRIVATE REPLY. 

    Best regards, 

    Qode

    * The new and improved Online Bridge Documentation is live. Check it out now - http://bridge.qodeinteractive.com/

    * You can also check our articles with useful tips and suggestions

    Best Regards,

    Qode

  • Nol replied

    Hi everyone,

    I would like to hide youtube related video

    I activated the wordpress plugin, but it doesn't work when you added the video on "qode portfolio video"

    I add this code on the general "qode option" into "custon js" :

    $j(".wpb_video_wrapper iframe").each(function() {
      var tubesrc = $j(this).attr("src");
      $j(this).attr("src", tubesrc + "&showinfo=0" + "&rel=0");
      $j(this).src += "&showinfo=0" + "&rel=0";
    });

    but nothing works

    Thanks in advance for your help

    Attached files:  qode option.jpg
      qode video.jpg

  •  992
    Qode replied

    Hello Nol,

    Please create your own, private ticket, send us an rl to your website and we'll take a closer look.

    All the best,

    The new and improved Online Bridge Documentation is live. Check it out now - LINK

    Also check our articles with useful tips and suggestions

    Best Regards,

    Qode