This topic contains 4 replies, has 2 voices, and was last updated by  Kharis Sulistiyono 1 year, 10 months ago.

Portfolio Title – link to external url?

  • Hi there –

    I’m trying to figure out how I can link my portfolio titles to a vimeo link and have it open in a lightbox. I’ve installed a plugin called Page To Links – that allows me to specify the vimeo link and override the WordPress URL, but I need to know where in my php files I can add the rel=lightbox selector.

    You can see what I’m doing by going here and hovering over the “Reel” at the top. http://www.lustrecommunications.com/v2test/portfoliogroup/our-work/. Basically when I click on this – I want it to open in a lightbox rather than going to vimeo.

    This is the only way I’ve figured out how to do this, but please let me know if there is an easier route!

    This reply has been marked as private.

    Hello there,

    Thank you for asking.

    Could you please try to add a new attribute rel=”lightbox” through jQuery script?

    1. Install and activate the Header and Footer Scripts plugin
    2. Go to Settings > Header and Footer Scripts. In the “Scripts in footer” field, add this code.
    3. Save settings

    Let me know how it goes. I’ll wait to hear back from you regarding your stats.

    Regards,
    Kharis

    This is what I’ve added to the footer, but am not seeing any change when I go to this page and click on “Reel”: http://www.lustrecommunications.com/v2test/portfoliogroup/our-work/.

    <script type=”text/javascript”>
    $(‘a[href~=”vimeo”].each(function() {
    $(this).attr({rel:”lightbox”, data-lightbox-type:”iframe” });
    });
    </script>

    Am I missing something? Thanks!

    Hello there,

    Your code seems working.

    Regards,
    Kharis

The topic ‘Portfolio Title – link to external url?’ is closed to new replies.