• Resolved informdev

    (@informdev)


    How can you make the images link to different pages instead of showing the enlarged picture?

    • This topic was modified 6 years, 11 months ago by informdev.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Dear informdev,

    Thanks for contacting us.
    Could you let us know, please, on which view would you like to apply those changes?

    We will be glad to help.

    Thanks

    Thread Starter informdev

    (@informdev)

    Hi,

    This is on the Blocks Toggle Up/Down. In addition, images look distorted unless they are cropped to match the ratio of the gallery thumbnail. Is there a way to change this?

    Thanks for your help.

    Dear informdev,

    Please be kindly informed that in the Pro version of the plugin we have an Image Behaviour > Natural option which will fix the issue of distorted images. In the Free version of the plugin, it is necessary to adjust the size of the image to the thumbnail like you have already mentioned.

    What refers to turning off the lightbox, then you need to apply the changes in two different files

    1) in the following file

    wp-content\plugins\portfolio-gallery\templates\front-end\view\toggle-up-down\toggle_up_down-view.php
    Line 111

    please find this part of the code:
    https://prntscr.com/hmx2ou

    and replace it with the codes below:

    https://prntscr.com/hmx99p

    2) in the following file
    wp-content\plugins\portfolio-gallery\assets\js\view-toggle-up-down.js
    Line 103

    please find this part of codes
    https://prntscr.com/hmx346

    add
    _this.dropdownable.on(‘click’, _this.openLink); to the space mentioned with an arrow (line 103)

    and finally write
    _this.openLink = function () {
    var url = jQuery(this).find(“.image-block a”).attr(“href”);
    if (url) {
    window.open(url);
    }
    }

    after the
    109 };

    3) Update the file with the applied changes.

    Good Luck!
    Hope you will get back to us with good results.

    Thanks

    Thread Starter informdev

    (@informdev)

    Thanks so much for the response! I do have the Pro version of the plugin and switched the image behavior to natural. However, this will not display the whole image in the thumbnail container. Only part of the image is displayed. Please advise.

    • This reply was modified 6 years, 11 months ago by informdev.
    • This reply was modified 6 years, 11 months ago by informdev.

    Dear informdev,

    Let me kindly mention that the Commercial or Pro versions of the plugins are not supported in www.ads-software.com forum. We will be grateful if you contact us directly for the deeper investigation of the problem.
    Please, do not forget to include the link to this forum in your email.

    We will wait for your reply.
    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Making the images links’ is closed to new replies.