Jump to content

g_franchini

Member
  • Posts

    15
  • Joined

  • Last visited

Reputation Activity

  1. Like
    g_franchini got a reaction from HeatherV in Disable right-click of images using only CSS   
    Thanks Tuan,
    in the meantime I made a mix of codes found in different places and modified for my needing (because I'm scary that your last modification could anyway cause trouble with arrow clicking on biggest tablet, but I don't know if I'm saying something wrong because I don't have a tablet to verify it).
     
    I used this code to block from saving images on mobile:
    I found the original version of that here: https://forum.squarespace.com/topic/9449-how-can-i-override-the-browsers-right-click-settings/#comment-266794 but it has the problem that it prevents to open links (or anything else) in other panels, copying text etc.
     
    While to block right click image saving on desktop devices, I used this in Advanced > Code injection > Header, that you originally posted on your website https://beaverhero.com/squarespace-disable-right-click/ and was implemented to avoid image drag as well here: https://forum.squarespace.com/topic/203953-inject-code-for-blocking-right-click-and-drag-and-save-for-images/#comment-493592 
     
     
      In this way I have the first code that avoid right click on mobile (only on images) and the second one that avoid from dragging and saving images on desktop.
     
    If there is something missing or wrong that you can see, please tell me.
     
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.