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 #2254214
Open image in a lightbox from a text link
Closed

Comments

  • pmelo2 started the conversation

    in this case, i want to click the link from a gem widget icon and open the image in the lightbox.

    if not possible, from text link is also fine

  •  7,092
    Oliver replied

    Hi,

    pls. provide wp-admin access and make screenshot how the widget should look like.

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

    Regards, Oliver

  •   pmelo2 replied privately
  •  7,092
    Oliver replied

    Hi,

    in the file:

    wp-content/thegem/thegem-elements/inc/shortcodes/shortcodes.php

    change line 1331:

    ($link ? '<a href="'.$link.'" target="'.$link_target.'">' : ''). $output .($link ? '</a>' : '').

    to 

    ($link ? '<a class="fancybox" href="'.$link.'" target="'.$link_target.'">' : ''). $output .($link ? '</a>' : '').

    and check

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

    Regards, Oliver