Community Events URL not working

Home Forums Calendar Products Community Events Community Events URL not working

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1031614
    Michael
    Participant

    We have an additional field set up as a URL for users to enter an address. However, when this has been displayed front end, the <a href tag is shown, and the link doesn’t work.

    Secondly, I’ve noticed the the <a href tag is programmed to target self, when we really would like it to open up a blank window. Same goes for the regular website field in the event description.

    Thanks!

    #1032691
    Geoff
    Member

    Hi Michael,

    So sorry for the trouble here! This is indeed an issue and the good news is that a fix is on the way.

    There is also a workaround for the issue you can do now that is outlined in this thread.

    I think it would be possible to change the link target and adding a snippet like this might do the trick:

    add_action( 'tribe_events_single_event_after_the_meta', 'tribe_open_meta_links_new_tab' );
    function tribe_open_meta_links_new_tab() {
    echo '<script>
    /* Open Event Meta Links in New Window */
    jQuery(".single-tribe_events #tribe-events-content .tribe-events-meta-group-other dd a")
    .addClass("external")
    .click( function() {
    window.open(this.href);
    return false;
    });
    </script>';
    }

    I’ll set this thread to Pending Fix while we work on the issue and I’ll follow-up when there’s more to share.

    Thanks!
    Geoff

    #1034025
    Geoff
    Member

    Hey there,

    Just poking in to let you know that this issue has been resolved and a patch will be included in Version 4.0. We expect that to release sometime today so please do keep you eyes peeled and feel free to let us know if have any other questions after updating.

    Thanks for your patience while we figured this out!

    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Community Events URL not working’ is closed to new replies.