Skip Navigation

[Resolved] Mailto link

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Shane 5 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1364337
Screen Shot 2019-10-18 at 11.45.13 AM.png

I am trying to create a mailto link using the email field type. See code below.

<p><button aria-label="Email Community Agent" class="email-agent-button">Email Agent</button></p>

Link to a page where the issue can be seen: hidden link.

Look at "Email Agent Button" on left column.

I expected to see: email window with agent name or email in the "To" field.

Instead, I got: a blank field.

#1364403

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Craig,

Thank you for contacting our support forum.

Is this page being rendered by a view at all ?

The problem here is that WordPress has removed the use of shortcodes as content for html tags since 2015.
https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/

So unless this page is being rendered by a view content template then this wont work.

Thanks,
Shane

#1364411

This page is not a view. Isn't there a conflict between Toolset views and Divi? Something about bootstrap?

#1364417

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Craig,

A conflict with Divi and Bootstrap has nothing to do with this particular issue. Its just that wordpress doesn't allow shortcodes to be used like this .
Email Agent

Also as far as i'm aware there isn't a conflict between the view's content template and divi. So if you created an empty content template and assigned this page to that content template.

Then add this to your content template [wpv-post-body] then your link should render with the email.

Thanks,
Shane