Home Forums Bee WordPress Theme LIghtbox appear from Gallery Image Post

This topic contains 3 replies, has 2 voices, and was last updated by  Johnny 3 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2809

    inplace
    Participant

    Hi I am using image posts under the gallery and was wondering if instead of going to the post/link, it can appear in a lightbox?

    #2811

    Johnny
    Participant

    hi, please open file functions/functions-view-module.php and find this line:
    <a href="<?php echo $post_option_input_link; ?>" pajx-click="true">
    update it to:
    <a href="<?php echo $thumb_src_preview[0]; ?>" class="lightbox" pajx-click="true">
    Best

    #2814

    inplace
    Participant

    Great that was very helpful and worked! Is there anyway to display the title of the image in the lightbox?

    Thanks again!

    #2823

    Johnny
    Participant

    Hi, update the previouse code to this will show the post title in lightbox:`” class=”lightbox” pajx-click=”true” title=”< ?php echo get_the_title( get_post_thumbnail_id($gallery->ID) ); ?>”>
    `
    Best

    • This reply was modified 3 years, 8 months ago by  Johnny.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.