• Resolved ecogmedia

    (@ecogmedia)


    I want to be able to edit the link for the venue just to say something like “click here” instead of displaying the URL as in the example page. Many of these URL’s are going to be long and it wraps weird.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ed

    (@erishel)

    Hey, thanks for your question!

    If you are comfortable with making some additions to your functions.php file, here’s a way to change the link text for venue websites.

    Add the following code to your functions.php file:

    add_filter("tribe_get_organizer_website_link_label", "rewrite_website_link_label");
    function rewrite_website_link_label($label){
            return "See website";
    }

    On the next to last line of that code, change “See website” to whatever you would like the link to say.

    Cheers!
    Ed

    Thread Starter ecogmedia

    (@ecogmedia)

    Thank you, though it doesn’t appear to affect the venue link but I did change it to the following and looks to be working.

    add_filter("tribe_get_venue_website_link_label", "rewrite_website_link_label");
    function rewrite_website_link_label($label){
            return "See website";
    }

    Also how can I add target blank to that link.

    • This reply was modified 7 years ago by ecogmedia.
    GeoffBel

    (@geoffbel)

    Awesome @ecogmedia,

    Try the following

    add_filter( 'tribe_get_venue_website_link_target', function () { return '_blank'; } );
    

    Let us know how that goes.

    Best regards,
    Geoff B.

    Thread Starter ecogmedia

    (@ecogmedia)

    That works great, thank you for the help

    Awesome!

    Since this is figured out, I’ll mark this thread as resolved. Feel free to reach out and open a new thread if you come across any other issues or have questions!

    Ed ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit venue website link’ is closed to new replies.