Right clic customization not working
Tic Tac
Registered Users Posts: 70 Big grins
Hi...
I've followed the instructions found here:
http://www.smugocity.com/CSS/Text-Replace/Custom-Right-Click-Protection
However, no change. Can not understand why. The code was put in my CSS for all galleries.
Any ideas?
I've followed the instructions found here:
http://www.smugocity.com/CSS/Text-Replace/Custom-Right-Click-Protection
However, no change. Can not understand why. The code was put in my CSS for all galleries.
Any ideas?
0
Comments
http://www.yaphoto.ca/Gallerie/Insectes
Try this:
I also updated the code on the smugocity site in case anyone else runs into this issue.
Thank you!
Question: Is it possible to include a carriage return in the string that is placed there?
Carriage returns can be inserted by setting the 'whitespace' to 'pre' and inserting ' \000A ' where the carriage return should be. For example:
This is the CSS code I'm using:
Can anyone explain where I've gone wrong?
Here is what I came up with, I hope it works for you. I know there's a code somewhere in these pages on how to format the right click box -brground color and size, etc. I tried this on my site and it works for me: (all I did was move the line breaks)
.sm-right-click-message:after {
content: 'Did you know that you can buy \000A my images and download them? \000A That way we would both be thrilled. \000A Now that is thrilling?';
white-space: pre;
}
.sm-right-click-message .sm-tooltip-content {
display: none;
}
Charles
Port Credit. Canada
http://charlesdalyphotography.com
You haven't done anything wrong, just need some slight tweaks.
The 'white-space: pre' style means the text will only break to the next line where you put the '\000A '. To make yours fit in the box, you can either add more line breaks so it doesn't go outside the box (which I'd recommend), or you can add: '.sm-tooltip.sm-right-click-message { max-width: none; }' to your CSS.
I added this:
Note that this will apply to all SmugMug tooltips, not just the right click message. To affect only the right click message, the more specific '.sm-right-click-message' selector can be used.