Title: Lightbox Issue
Last modified: August 30, 2016

---

# Lightbox Issue

 *  Resolved [tpinkus](https://wordpress.org/support/users/tpinkus/)
 * (@tpinkus)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/)
 * Just upgraded to latest version of this AWESOME plugin, and I’m running into 
   an issue with the widget and the Thumbnail setting.
 * Basically I’m using the Thumbnail version because it does the cool Lightbox display
   of the video without leaving the site. However now its just linking to YouTube,
   and taking visitors away from my site.
 * Help me please.
 * Here’s the dump from my JSON:
 * {“date”:”Thu, 11 Jun 2015 17:02:48 +0000″,”server”:”Apache\/2.2.26 (Unix) mod_ssl\/
   2.2.26 OpenSSL\/1.0.1f DAV\/2 PHP\/5.5.9″,”php”:”5.5.9″,”wp”:”4.2.2″,”ytc”:”3.0.8.3″,”
   url”:”http:\/\/SERVER-NAME-REMOVED”,”for”:”youtube-channel-3″,”title”:”Top Movies”,”
   class”:””,”channel”:”UCkR0GY0ue02aMyM-oxwgg9g”,”username”:””,”playlist”:””,”vanity”:””,”
   num”:”5″,”resource”:”0″,”cache”:”300″,”random”:false,”fetch”:”5″,”goto_txt”:””,”
   popup_goto”:”0″,”link_to”:”none”,”showtitle”:”none”,”showdesc”:false,”desclen”:”
   0″,”width”:”260″,”responsive”:””,”display”:”thumbnail”,”no_thumb_title”:”on”,”
   autoplay”:false,”autoplay_mute”:false,”norel”:”on”,”modestbranding”:”on”,”controls”:”
   on”,”ratio”:”3″,”hideinfo”:”on”,”hideanno”:”on”,”themelight”:””,”privacy”:””}
 * [https://wordpress.org/plugins/youtube-channel/](https://wordpress.org/plugins/youtube-channel/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/lightbox-issue-13/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/lightbox-issue-13/page/2/?output_format=md)

 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222239)
 * Please provide URL to website. You removed website URL from JSON.
 *  Thread Starter [tpinkus](https://wordpress.org/support/users/tpinkus/)
 * (@tpinkus)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222247)
 * fulltanq.com
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222255)
 * Go to **Settings** -> **YouTube Channel** -> **Video** -> untick option **Disable
   Lightbox**
 *  Thread Starter [tpinkus](https://wordpress.org/support/users/tpinkus/)
 * (@tpinkus)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222284)
 * Did that… didn’t help 🙁
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222288)
 * Code to trigger MagnificPopup is now on page, but not fired.
 * If you don’t have experience with editing PHP/JS files, please [contact me](http://urosevic.net/wordpress/contact/)
   so I can send you patched version of plugin to test and instructions to replace
   current with patched plugin.
 * If you have experience with editing PHP/JS files, can you please try to edit 
   file wp-content/plugins/youtube-channel/youtube-channel.php and find lines:
 *     ```
       jQuery(document).ready(function($){
       						$('.ytc-lightbox').magnificPopupAU({
       ```
   
 * and replace with this:
 *     ```
       jQuery(window).on('load', function(){
       						jQuery('.ytc-lightbox').magnificPopupAU({
       ```
   
 * Please use FTP and make backup of file before you do this change. If you have
   advanced experience with editing PHP/JS files, then you know that already 🙂
 * Then try again.
 *  Thread Starter [tpinkus](https://wordpress.org/support/users/tpinkus/)
 * (@tpinkus)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222289)
 * Tried that, but no go. Still linking to Youtube to play video.
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222352)
 * Do not use single line comment because you got this:
 * `//jQuery(document).ready(function($){//$('.ytc-lightbox').magnificPopupAU({jQuery(
   window).on('load', function(){jQuery('.ytc-lightbox').magnificPopupAU({disableOn:
   700,type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:false,fixedContentPos:
   false});});`
 * So one long line comment, no working code. Please fix that and then lightbox 
   should work.
 *  [elghana](https://wordpress.org/support/users/elghana/)
 * (@elghana)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222436)
 * hi, i am also having the same problem. Everything worked fine till i just updated
   to your new version.
    1. I am seeing the play button appearing double like main
   and shadow 2. The disable lightbox is not ticked yet lightbox is not working 
   3. I searched through the whole youtube channel.php file via plugins > youtube
   channel > edit and couldn’t even find the lines you adviced replaced. my page
   is elghana.co.uk i think i should not have upgraded because everything was working
   perfectly but i just want to keep up to date with you. I will be glad if there
   is a patch to fix this. Thank you
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222437)
 * Hi [@elghana](https://wordpress.org/support/users/elghana/),
    1. You have in style.css file on line 704 overriden background-size to 20% (selector.
       ytc_thumb>span:before). Remove that and if you wish to get smaller play button,
       use transform property scale, like **transform: scale(.45);**
    2. Ok, there is other problem.
    3. You can see that two lines here [https://plugins.trac.wordpress.org/browser/youtube-channel/tags/3.0.8.3/youtube-channel.php#L391](https://plugins.trac.wordpress.org/browser/youtube-channel/tags/3.0.8.3/youtube-channel.php#L391)(
       or you can try with v3.0.8.4-pre release? Get it from here [https://goo.gl/NUI7A7](https://goo.gl/NUI7A7)
       and upload extracted content over existing files in wp-content/plugins/ directory.
       Please make full website backup before that, or at least database and youtube-
       channel plugin backup, so you can go back if something went wrong).
 *  [elghana](https://wordpress.org/support/users/elghana/)
 * (@elghana)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222439)
 * For anyone who will be in similar situation about the play button: tis is what
   urkekg asked me to do and it worked great : add the line below to your css
 * .youtube_channel .ytc_thumb>span:before {transform: scale(.45);}
 * Dear Urkekg,
    Thank you for your promt response and help even after this magnificent
   plugin. I did the change on line 391… it did not work, then i went ahead and 
   uploaded the assets folder, the youtube-channel.php and the updates.php files
   to the current directory, overriding old files. still not working. Now I am hitting
   my head against the wall. I am hopeful your next answer shall definitely help
   me overcome this. Thank you
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222440)
 * What if you temporary disable all plugins except YTC, just for test? Does it 
   works then? If works, then there is some clash with some plugin. If does not 
   work, then can be clash with theme.
 * Please try and feedback so we can continue debugging.
    Also, try to disable lightbox
   in ytc and check with all plugins enabled does it works. Do not forget to clear
   cache if you have some caching plugin installed.
 *  [elghana](https://wordpress.org/support/users/elghana/)
 * (@elghana)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222443)
 * hi, i had initially tried the disable lightbox thing. I redid it and also tried
   the texting with all plugins disabled.
    None of them worked. It hurts me to be
   a bother to you. everything worked well with the previous version before this
   recent update. and since then, i have not added any plugin nor changed themes.
   Is it possible to point me to the download for the previous version, as you advice
   me on the next thing to try and see if there can be a fix. Thank you again. Well
   appreciated
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222445)
 * You can find older versions of plugin here [https://wordpress.org/plugins/youtube-channel/developers/](https://wordpress.org/plugins/youtube-channel/developers/)
 * But I will appreciate if you help me to we find bug and resolve it for good. 
   At least, what version worked well (can you downgrade and confirm)?
 *  [elghana](https://wordpress.org/support/users/elghana/)
 * (@elghana)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222449)
 * Thank you. As i was doing some checks, i realised i have recently changed the
   loading style of this plugin from php to ajax and when i reversed the changes.
   and even using the version 3.0.8.4 everything is working fine. I am currently
   intentionally loading two youtube channel widgets, one with ajax (the one on 
   the left) and one with php (the one at the right)
    the right that uses php to
   load the dynamic sidebar containing the widget is working perfectly but the one
   on the left using ajax is what is not permitting the use of lightbox. Plugin 
   is 100% perfect!
 * By the way, do you have any idea how i can get the one loading with ajax to load
   in the lightbox?
    Thank you
 *  [elghana](https://wordpress.org/support/users/elghana/)
 * (@elghana)
 * [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/#post-6222450)
 * I think i have to copy and paste the jscript controlling the lightbox into the
   ajax file or call that function in the ajax if it has a unique name. I wouldn’t
   want to worry you with this secondary problem but if you have a solution, I will
   be glad to have it.
    Thank you

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/lightbox-issue-13/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/lightbox-issue-13/page/2/?output_format=md)

The topic ‘Lightbox Issue’ is closed to new replies.

 * ![](https://ps.w.org/youtube-channel/assets/icon.svg?rev=2845692)
 * [My YouTube Channel](https://wordpress.org/plugins/youtube-channel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-channel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-channel/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-channel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-channel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-channel/reviews/)

 * 16 replies
 * 3 participants
 * Last reply from: [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/lightbox-issue-13/page/2/#post-6222456)
 * Status: resolved