Link in the list of events below the mini calendar widget

Home Forums Calendar Products Events Calendar PRO Link in the list of events below the mini calendar widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #922665
    michael
    Participant

    Below the mini calendar widget is the list of events for that month. Looks great and suits my clients needs (almost) perfectly.

    By default, clicking on the name of the event in that list takes you to a custom post page with that event’s details. There are a lot of questions on your forums about how to alter that link to point to other things. Count me as someone else who would like to see an easier way to customize the target of that event-name link… It’s easy to imagine an option on the event page where you could choose a link target from a drop-down control offering options based on people’s needs (plus a custom option where you could enter an arbitrary URL).

    Until that convenience is built, I could use a quick assist about altering the plugin theme files to make it work the way I need it to. I am not really comfortable with PHP but do know how to poke around and make a quick edit when necessary.

    I am pretty sure I have located the file that contains the code I need to edit (/views/pro/widgets/modules/single-event.php) and the line that contains the link I want to change:

    		<h2 class="entry-title summary">
    		<a href="<?php echo tribe_get_event_link(); ?>" rel="bookmark"><?php the_title(); ?></a> 
    		</h2>

    If I’m right, I need to change that <tribe_get_event_link> portion since that is the source of the URL I’m hoping to alter. Instead of the default target URL, I’d like to use the value from the EVENT WEBSITE:URL field.

    Your knowledgeable page for post meta data suggests the name of my desired field is “_EventURL” but when I replace “tribe_get_event_link” with “tribe_get_event_EventURL” or “_eventurl” I get a failure.

    I’m not expecting you to provide the customization, but can you point me in the right direction or away from this wrong direction?

    (PS I know about setting up the child theme… to make this experiment simpler I’m simply looking at/working with the primary plugin files for now. I’ll do the child theme once this is figured out.)

    #922704
    Brian
    Member

    Hi,

    Thanks for using our plugin. I can help give you some information on this.

    You would like to replace the link to the event custom post type with the link for the Event URL, correct?

    Try this function instead to do that:

    tribe_get_event_website_link()

    Let me know if that works for you.

    Thanks

    #922708
    michael
    Participant

    Hey, thanks for the super-fast response. That comes CLOSE… see the screenshot for the not-quite-right result, however. The full URL is displaying instead of making the event title a hyperlink.

    Desired Result

    Actual Result

    Thanks again-

    M

    #922709
    michael
    Participant

    Just experimented – this worked instead…

    tribe_get_event_website_url()

    “url” not “link”

    Thanks for the tip!

    #922710
    Brian
    Member

    I am glad to see you were able to figure it out.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Link in the list of events below the mini calendar widget’ is closed to new replies.