Support

Home Forums Event Espresso Premium Clickable Telephone Number

Clickable Telephone Number

Posted: March 10, 2020 at 12:28 am


JohnB

March 10, 2020 at 12:28 am

Is it possible to make the event telephone number “clickable” by put some additional code in somewhere?
Asking for my web developer.


Tony

  • Support Staff

March 10, 2020 at 4:58 pm

Hi there,

The phone number is output using the espresso_event_phone() template tag and all/most of our template tags are pluggable functions (in short, meaning they can be overridden but your own code).

So your web developer could override the espresso_event_phone function to output the number within a link if preferred. They can do that within a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


JohnB

March 15, 2020 at 3:27 pm

Thank you Tony,

I should have added this was the number that appears just below the event date and time (top left of screen) on the individual events booking pages.


Tony

  • Support Staff

March 16, 2020 at 7:26 am

Hi John,

That’s what I assumed for the above, that output is generated using the above function. If your developer overrides that function it will output a link.

Or, another option is to copy the template file used for that specific output from within EE:

\event-espresso-core-reg\public\Espresso_Arabica_2014\content-espresso_events-details.php

Add that to the root directory of your theme (preferably a child theme) and set the event phone to be a link directly within the template itself.

The support post ‘Clickable Telephone Number’ 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