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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week, 6 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!