Change the Right Click Protection Text - Aaron Meyers

Change the Right Click Protection Text

If Right Click Protection is enabled in your SmugMug gallery a default set of text will appear. But in many cases this default text is not very personable. If you would like to customize the text to give it a personal flare and to encourage your viewer to buy your photo instead of stealing it, use the following code. Change the 'YOUR Message Here' line next to "content":

/* Custom Right-Click Protection */
.sm-user-ui .sm-right-click-message:after {
  content: 'YOUR Message Here!';
}

/* Disable the default Right Click Protection Message */
.sm-user-ui .sm-right-click-message .sm-tooltip-content {
  display: none;
}

Stylizing your Right Click Protection Tooltip Menu

You can change the way the tooltip menu looks using the following code
/* Change the Right Click Protection Text */
.sm-user-ui .sm-right-click-message:after {
  content: 'YOUR Message Here';
  visibility: visible;
  display: inline-block;
  position: relative;
  background-color: #8a8585;
  width: 240px;
  height: 75px;
}

.sm-user-ui .sm-right-click-message .sm-tooltip-content {
  display: none;
}

Comments

Powered by SmugMug Log In