How can I disable the copy function on my Symmetry theme?

Solved

How can I disable the copy function on my Symmetry theme?

candra72
Excursionist
37 0 10

Some posts here suggest pasting a code to asset-base.css to prevent highlights to copy.

However, I did not see asset-base.css under my theme "symmetry"

Is there another way to disable the action to copy?

 

Thank you

candra

Accepted Solutions (2)

yashgarg
Shopify Partner
102 26 38

This is an accepted solution.

Hey @candra72 ,

 

You can add the following code to main.css at the end, to disable copying on your whole site

body {

  -webkit-user-select: none;

  user-select: none;

}

 

Thanks

Yash Garg

If this works for you, please give it a like and mark it as the solution! Thanks 🙂
Feel free to contact me for Shopify tech support
Email: yashgarg.tech@gmail.com

View solution in original post

PageFly-Richard
Shopify Partner
4902 1100 1776

This is an accepted solution.

Hi @candra72 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
body, * {
user-pointer: none !important;
}
::selection {
background: unset !important;
}

</style>

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 3 (3)

yashgarg
Shopify Partner
102 26 38

This is an accepted solution.

Hey @candra72 ,

 

You can add the following code to main.css at the end, to disable copying on your whole site

body {

  -webkit-user-select: none;

  user-select: none;

}

 

Thanks

Yash Garg

If this works for you, please give it a like and mark it as the solution! Thanks 🙂
Feel free to contact me for Shopify tech support
Email: yashgarg.tech@gmail.com
candra72
Excursionist
37 0 10

Thank you, appreciate it !!

PageFly-Richard
Shopify Partner
4902 1100 1776

This is an accepted solution.

Hi @candra72 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
body, * {
user-pointer: none !important;
}
::selection {
background: unset !important;
}

</style>

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.