Make the Email Address Selectable

Follow

To make the email address selectable, please follow these steps:

  1. From Shopify's admin, select Apps.

    select apps

  2. Select Store Locator.

    select store locator

  3. Select Settings.

    select settings

  4. Select Display Settings.

    select display settings

  5. Copy and paste this code in 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>

    paste the code

  6. Select Save.

    Save

That's it!

Next Steps:

Blog Posts:

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.