Does PRO Calendar offer you to put a different URL link on 'Find out More'

Home Forums Welcome! Pre-Sales Questions Does PRO Calendar offer you to put a different URL link on 'Find out More'

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1017015
    Daniel Iwao
    Guest

    Hi, I was wondering if there is a feature on the PRO calendar where you could put in a different URL for the ‘Find Out More’ than the slug that just comes with the event when it’s created. For instance, I’d like the Find Out More button to link to a whole different website where I am hosting the event.

    Thanks!

    #1017050
    George
    Participant

    Hey Daniel,

    Unfortunately, regardless of whether you have Events Calendar Pro or not, the only way to truly customize this is to write some custom code in e.g. your theme’s functions.php file.

    For example, let’s say for one event you want it to link to http://google.com; for another event, you want it to link to http://bing.com; and then for any other even you just want it to link to itself as is done by default.

    To achieve this, you’d write code like this in your theme’s functions.php file:


    if ( function_exists( 'tribe_get_events' ) ) {
    /**
    * Add custom "find out more" links for given events.
    *
    * @link http://theeventscalendar.com/?p=1017015
    */
    function tribe_support_1017015( $link, $event ) {

    if ( isset( $event->ID ) && 123 == absint( $event->ID ) )
    $link = 'http://google.com';

    if ( isset( $event->ID ) && 456 == absint( $event->ID ) )
    $link = 'http://bing.com';

    return $link;
    }

    add_filter( 'tribe_get_event_link', 'tribe_support_1017015', 10, 2 );
    }

    add_filter( 'tribe_organizer_label_singular', 'party_on_wayne' );

    This would make the event whose ID is 123 link to Google, and the event whose ID is 456 link to Bing; all other events will not be modified and their links will be the default.

    This is basically the best way to do this, unless you got fancier with a custom meta field or something, but that is beyond the scope of the support we can provide here.

    I hope this helps!

    George

    #1022512
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Does PRO Calendar offer you to put a different URL link on 'Find out More'’ is closed to new replies.