Make the Email Address Selectable

Modified on Fri, 1 Sep, 2023 at 3:32 AM

Overview

This article outlines how to make your store's email addresses selectable to your customers.


Setup

  1. From the Shopify admin, select Apps.
  2. Select Store Locator.
  3. Select Settings.
  4. Select Display Settings.

    select display settings

  5. Copy and paste this code into the Page Header HTML field:
    <script>
     jQuery(document).ready(function(){
     var old_focus_and_popup = focus_and_popup;
    
     focus_and_popup = function (id){
     return_val = old_focus_and_popup (id);
    setTimeout(function (){
    
     jQuery(".gm_popup .email").click(function(){
     var text = jQuery(this).text();
     document.location = "mailto:" + text.trim();
     });
    
     jQuery(".gm_popup .email").css('text-decoration','underline').css('color','#2aa8e0');
    }, 200);
     return return_val ;
     }
    });
    
    </script>

  6. Select Save.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article