Helix Ultimate Contact Info - Question | JoomShaper

Helix Ultimate Contact Info

R

Roman

Helix Framework 11 months ago

I use the template helixultimate. In the template settings (Basic – Contact Info) I put in my email address. So when i klick to this address the mail application starts with an email but there is no sbject in the mail. In HTML it is possible to set the subject with the mail using e.g. mailto:[email protected]?subject=Mail from Website

My question: is it possible to set the subject parameter in the template?

Thx for your answer Roman

0
2 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 11 months ago #175299

Hello Roman,

Thank you for reaching out regarding your query about adding a subject to the email link in the Helix Ultimate template. Unfortunately, the functionality to set a subject directly through the template's settings is not available. However, you can achieve this by making a small modification to the template's code.

Here's how you can update the code to include a subject in the email link:

  1. Navigate to the file: JRoot/templates/shaper_helixultimate/features/contact.php

  2. Locate the following code snippet:

    if($this->params->get('contact_email'))  
    {  
     $output .= '<li class="sp-contact-email"><span class="far fa-envelope" aria-hidden="true"></span> <a href="mailto:'. $this->params->get('contact_email') .'">' . $this->params->get('contact_email') . '</a></li>';  
    }
  3. Replace it with:

    if($this->params->get('contact_email'))  
    {  
     $output .= '<li class="sp-contact-email"><span class="far fa-envelope" aria-hidden="true"></span> <a href="mailto:'. $this->params->get('contact_email') .'?subject=Your%20Subject%20Here">' . $this->params->get('contact_email') . '</a></li>';  
    }
  4. Replace Your%20Subject%20Here with your desired email subject. (Use %20 to represent spaces.)

Please note that if the template is updated in the future, this change will be overwritten.

If you need further assistance or clarification, feel free to reach out.

Best regards

0
R
Roman
Accepted Answer
11 months ago #175404

Thank you for your support! This was very helpful! THX Roman

0