Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1790735
Lightbox with different image
Closed

Comments

  • AndreasResch started the conversation

    Hello.

    In a post, is it possible to show an image with a higher resolution (from a separate link) when I click on an image?

    I have an image with a width of 867px (full width) and when I click on it, I want to open the same image but at a higher resolution in a lightbox. It wouls also be great if the smaller image would show the camera icon, when the mouse hovers of it.

    Cheers,
    Andreas

  •  7,095
    Oliver replied

    Hi,

    In what shortcode you need to make it? 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • AndreasResch replied

    At the moment the closest I can get is through "[vc_single_image]". But here I just can open the same image in a lightbox or link to a seperate site without lightbox.

    Cheers,
    Andreas

  •  7,095
    Oliver replied

    Here is an example of adding fancybox block: 
    To the row html shortcode add this code:


    <a class="fancybox" href="#link"> Link </a> <div id="link">[Shortcode]</div>

    And add this css to the custom css field on the page: 


    #link {display: none} 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • AndreasResch replied

    It works, but it's messy. Whenever I enter the Backend Editor and exit it again, it messes up the code by adding shortcodes and "<p>" tags to it.

  •  7,095
    Oliver replied

    pls. provide the wp-admin access and link to this page.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • AndreasResch replied

    I'm working on a local web server. That's not possible.

    Your "[gem_image]" shortcode is pretty nice, and it would be perfect, if you could add the option to open a different image when the source image is clicked. That would solve the problem.

    One little side-problem with your "[gem_image]" code. I have an image with a size of 1000x800px. When I open it it in the lightbox, it is scaled up to a width of 997.05px and I have to click the image again to get the full resolution to show. The screen is big enough.

  •  7,095
    Oliver replied

    Hi,

    Sorry, It's not possible without the changes it the theme core files. Also it's the first such request in more the 30 000 tickets, you can use the code I gave you. May be try to add this code to the simple text block widget, there is shouldn't be <p> tag (add it in the text mode.)

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • AndreasResch replied

    There's a first time for everything, but that doesn't make it a less important request. Just think about it and maybe add it to your features. A lot of photographers might appreciate it.

    Cheers,
    Andreas

  •  7,095
    Oliver replied

    Ok. We'll think about it.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • AndreasResch replied

    Any idea how the zoom issue can be solved?

  •  7,095
    Oliver replied

    Can you set the site to any test hosting?

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • AndreasResch replied

    Not right now - this would take too much time and not make any sense at this point. But when I go online and the issue will come up again, I will contact you.

    Update on the <p> tag issue. The <p> tags appear when I add a new element in the Backend Editor. However they disappear again, after I click "Update Post". Weird but as long as it does not impact the output of the post, I'm fine with it.

  •  7,095
    Oliver replied

    Sorry, can't say you the reason without the access.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver