Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #13115

    Hello,

    I created a YouTube social media button on my homepage, but instead of bringing me to the linked URL it opens up the video in a lightbox. I have videos in my portfolio as well that I want to keep in lightboxes, but I’d like the social media button to take me to YouTube directly. Can you tell me how to code this properly? http://www.a1concrete-leveling.com/newsite/

    Thanks so much!

    Danielle

    #77861

    Hi Danielle,

    Have you tried linking to your YouTube Channel page?

    Regards,

    Mya

    #77862

    I’m having the same issue. The YouTube social media button is coded to open a PrettyPhoto popup window to display a single video instead of linking to a YouTube URL.

    I too would like this changed so it links to a YouTube web page instead of a popup window.

    #77863

    Hello,

    Try to put class=”noLightbox” target=”_blank” on your anchor tags.

    Regards,

    Ismael

    #77864

    I think I found a fix for this so YouTube links don’t open in a popup unless it’s an actual video.

    In line 975 of the coherence/js/avia.js file, change this:

    autolinkElements: ‘a[rel^=”prettyPhoto”], a[rel^=”lightbox”], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=”.mov”] , a[href$=”.swf”] , a[href*=”vimeo.com”] , a[href*=”youtube.com”] , a[href*=”screenr.com”]’

    To this…

    autolinkElements: ‘a[rel^=”prettyPhoto”], a[rel^=”lightbox”], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=”.mov”] , a[href$=”.swf”] , a[href*=”vimeo.com”] , a[href*=”youtube.com/watch”] , a[href*=”screenr.com”]’

    Now you can enter a YouTube PAGE URL in the Coherence social media configuration menu and it will NOT be shown in a popup or give you an error, as in: http://www.youtube.com/user/GIIVideo

    IF you want a YouTube video to open in a popup, then you enter the WATCH URL, as in: http://www.youtube.com/watch?v=ebmsFmSe654

    I don’t know if this will adversely affect any other YouTube / Popup functionality, but it’s working for the YouTube social media icon.

    #77865

    Thanks for the replies! Adding class=”noLightbox” target=”_blank” to the anchor tags worked! Thanks again!

    #77866

    Hi,

    Glad that I could help you. :)

    Cheers,

    Ismael

    #77867

    Hi Ismael

    I’m having the same problem as BrianPBurt. My social media vimeo icon opens up a lightbox window, instead of redirecting people to my vimeo page.

    You suggested to put class=”noLightbox” target=”_blank” on your anchor tags.

    Can you tell me how do I do that? I mean, on what line of what document I can edit that? Sorry, I’m not that clued up with code.

    Cheers.

    Zorrrrro

    #77868

    It’s hard to say because it depends on the plugin, etc. you’re using. Basically you need to search for the a href tag in your code and then add class=”noLightbox” target=”_blank” to it.

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

The topic ‘YouTube Link on Social Media Button’ is closed to new replies.