Support

Home Forums Event Espresso Premium Venue website link

Venue website link

Posted: March 10, 2017 at 3:32 pm

Viewing 7 reply threads


KristofRisingHeart

March 10, 2017 at 3:32 pm

When in the backend editing the venue I need to add the http:// manually before the website link.

In the frontend on the page. The entire link is displayed
e.g. http://www.delotus.net
Is there a way to create a hyperlink that only shows http://www.delotus.net
Like the example below?
Het Lotushuis

Kind regards,
Kristof


KristofRisingHeart

March 10, 2017 at 3:35 pm

*Edit previous post.
Is there a way to create a hyperlink that only shows http://www.delotus.net without the http?
or a text with a hyperlink Like the example below?
Het Lotushuis


Garth

  • Support Staff

March 14, 2017 at 12:52 pm

So, you can’t add a link without the http because the website address on the venue page is broken?

Can you add the url to the description of the venue?


Tony

  • Support Staff

March 15, 2017 at 8:16 am

Hi Kristof,

I looks like you’d rather display the venue name as a hyper link using url provided within the Venue Website field, like this – http://take.ms/D7A21

Is that correct?

If so the function output within that page is ‘pluggable‘ which means you can override it by adding your own function with the same name.

So if you create a Custom Functions Plugin and add this function to it:

https://gist.github.com/Pebblo/2c547c70fc6d3e4521df8de88c68c533

That will display the link using the venue name as the link text shown above.

Is that what you are looking for?


KristofRisingHeart

March 16, 2017 at 8:08 am

Excellent answer Tony. Thanks a lot! That was indeed what i was looking for.
Is there a way to let the url open in a new tab, so the client doesnt have to leave the original website?


Tony

  • Support Staff

March 16, 2017 at 8:18 am

Yes but not using the template_tag and helper functions in the above, you’d need to build out your own link.

You have full control over the URL using the above function, so you can output it however you prefer but you’ll need to build the URL.

Take a look at that EEH_Venue_View::venue_website_link method within core and basically build your own version that adds target="_blank" to the link output.


KristofRisingHeart

March 16, 2017 at 8:20 am

Great! Thanks a lot! Was already looking into core to see if i could figure it out.

Thanks again for your help.
Kristof


Tony

  • Support Staff

March 16, 2017 at 8:32 am

You’re most welcome, Kristof.

Viewing 7 reply threads

The support post ‘Venue website link’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso