Want to change text of "Website" link on single event page

Home Forums Calendar Products Events Calendar PRO Want to change text of "Website" link on single event page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #108758
    makemyblogpretty
    Participant

    When viewing the page for a single event on our site there is a “Website” label which has a hyperlink to a web site below it. By default the text of this hyperlink is the same as the link itself. Is there a way to customize the text so it says something like “View the web site here” instead? Some of our links are very long and are running into other items on the page.

    The content of this section of the single-event.php template seems to be handled by tribe_events_single_event_meta() so I’ll probably need to add a hook or filter of some sort, but I’m not sure what the syntax should be. Any help would be appreciated.

    #108811
    makemyblogpretty
    Participant

    I did some more digging and was able to modify some code linked to in this thread by Jonah to fix my problem: https://theeventscalendar.com/support/forums/topic/how-to-show-website-event-url/

    #109850
    Leah
    Member

    Awesome, glad you found a solution! Feel free to start another thread if you need any help.

    Best,
    Leah

    #812170
    Sara Dunn
    Participant

    Here is the exact code you can use, in case anyone needs it. http://pastebin.com/bubnz187
    I’m honestly surprised that this isn’t the default option (showing tidy link text). The full website URLs often look terrible.

    #812301
    Brook
    Participant

    Thanks for sharing your code! That is perfect for folks looking here.

    It looks like this topic slipped past our archiver. We tend to archive anything older than two weeks in an effort to keep things tidy and focused on a single issue. I am going to do that now.

    – Brook

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Want to change text of "Website" link on single event page’ is closed to new replies.