Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #7801

    Hello,

    I wondered if you could help me. I added a common widget for social media buttons in my sidebar, but for some reason the youtube button won’t work? When I click on it, my sight try’s to open a lightbox? it’s really weird, as the other buttons work like normal. I’ve tried two kinds of widgets with same result. My site: http://www.thinkbodyfit.com

    Thanks so much, Jay

    #59314

    Hey,

    Open up js/avia.js and replace:

    jQuery(document).ready(function(){

    with:

    jQuery(document).ready(function(){
    jQuery(".social-profiles a").addClass("noLightbox");

    #59315

    It worked, Thank you!

    #59316

    Hi Dude,

    Could you also give me the code for the youtube icon on the header? I ended up just using those on top as well, but now the youtube button on top tries to open a lightbox…

    Thanks so much, Jay

    #59317

    Dude, Never mind last note, I figured it out already based on what you told me before…Cheers, Jay

    #59318

    Dude,

    I’m having a similar problem in my sidebar. I tried your above solution but it did not work. I’m using the widget “Instapress” in my sidebar that displays all of my Instagram pics. However, when you click on them, they open up in lightbox. I want to disable lightbox ONLY for this sidebar and/or widget. I still want lightbox to function on the rest of the page. So is there anyway to isolate lightbox on the sidebar and disable it?

    Here’s my website. It’s the homepage that I’m talking about:

    http://www.brentbarbano.com

    Thanks so much in advanced!

    -Brent

    #59319

    You can try to modify the code in js/avia.js – replace:

    if(jQuery.fn.avia_activate_lightbox)
    jQuery('body').not('.page-id-1826').avia_activate_lightbox();

    with:

    if(jQuery.fn.avia_activate_lightbox)
    jQuery('.content').not('.page-id-1826').avia_activate_lightbox();

    #59320

    Dude,

    Ahhh so close. It did work for the sidebar…the Instagram photos were successfully opening up in their own Fancybox without LightBox. However, this also effected the featured videos at the top of my page. When clicking on them now, it takes you to their Vimeo site. I really want to keep the Lightbox feature for those videos. That’s the problem I’m battling with I guess.

    Also, one thing to note. The page-id-1826 as noted in the above code is a different page I’ve been using as a test for this problem only. It is NOT this current Home page that we’re dealing with. This page ID is 1757. Not sure if that matters or not.

    Please let me know if there’s anything else that can be done. Thanks so so much again!

    -Brent

    #59321

    Hey!

    try

    if(jQuery.fn.avia_activate_lightbox)
    jQuery('.sidebar').not('.page-id-1826').avia_activate_lightbox();

    Regards,

    Chris

    #59322

    Hey Chris,

    No, Unfortunately Lightbox still works in sidebar but it disables it for featured videos. Any other suggestions?

    Should I take away?:

    .not(‘.page-id-1826′)

    Thanks!

    -Brent

    #59323

    Hey Chris or Dude,

    I’ve been trying multiple variations of your suggestions and still nothing. Also researched a bunch and nothing is working. I’m really sorry but I’m all out of ideas. If you guys have any other suggestions I’m all ears. Thanks so much!

    -Brent

    #59324

    Hey!

    Try:

    if(jQuery.fn.avia_activate_lightbox)
    jQuery('.content,.slideshow_big').not('.page-id-1826').avia_activate_lightbox();

    I’m not sure if this will trigger js errors on pages without slideshow.

    Best regards,

    Peter

    #59325

    Dude!

    It worked! thank you so much. Instapress does not open up in Lightbox!

    So far I’m not noticing any errors either. I’ve gone through every page and it all works. I really really appreciate it!!!

    -Brent

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘YouTube button in sidebar won't work-turns into lightbox?’ is closed to new replies.