Hide portfolio image urls in the status bar

  • Posted in : Photographer
  • jevidon
    Participant

    When hovering over an image in a portfolio gallery the full path of the image is visible. Is there a way to shorten that to just the file name, or remove it altogether?

    ahmetsali
    Keymaster

    Hi, you can try this;

    – copy and paste the code below to the Theme Options > Style > External Js box;

    <script>
    jQuery(document).ready(function($) {  
       $('.pw-gallery a').each(function() {
    	$(this).attr('data-href', this.href).removeAttr('href').css('cursor','pointer');
        });
    });
    </script> 
    
    jevidon
    Participant

    Perfect. Thanks.

    ahmetsali
    Keymaster

    you are welcome.

    Architextur
    Participant

    Hi.
    How can i hide the “download picture” option, when i click a picture with the right mouse button?

    ahmetsali
    Keymaster
    FrankSenftleben
    Participant

    NOT WORKING FOR ME

    jQuery(document).ready(function($) {
    $(‘.pw-gallery a’).each(function() {
    $(this).attr(‘data-href’, this.href).removeAttr(‘href’).css(‘cursor’,’pointer’);
    });
    });

    I put it in, but the link still show up

    ahmetsali
    Keymaster

    @FrankSenftleben

    Hi, can you provide your related page url?

    FrankSenftleben
    Participant

    HI, yes –
    the page url is : http://frank-senftleben.de

    please take a look

    ahmetsali
    Keymaster

    @FrankSenftleben

    sorry that code only works for PhotoGallery 1, it is not possible for PhotoGallery 2 because of it uses a different script and it needs image urls as links. Actually even if you could hide all the image urls on your site you can’t still protect your images from being stealing, anyone who knows to inspect your website’s source code, still can find the full image urls, sad but true :/

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register