Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TV productions

    (@tv-productions)

    I assume you don’t use the lightbox and that you’ve set the setting link to to image file. This means that when you click on an image, the image file is shown. That is not a webpage, but just the file itself. So it is impossible to add a back button there.

    What I would recommend is set the link to setting to lightbox and in that case, the user has only to close the lightbox to get back to the grid.

    I hope this solves your problem, if it doesn’t or you’ve any questions, please reply here.

    Thread Starter jpdr

    (@jpdr)

    Hello i know what your mean. And i have set it up to link the image file to lightbox. But i have different albums. All of them you see 3 images preview. If you want to see the other pictures you click on the link under the 3 preview images. But than you came at a new web page. That show all the images of that specific album. And on that page I want a link back to the album grid that shows al the different albums i have added.

    Thank you for your fast response ??

    JP

    Plugin Author TV productions

    (@tv-productions)

    You have to edit your theme for that.

    Copy the file single.php to single-easy-photo-album.php and open it in an editor.

    Place somewhere (where you want the back link) the following code:

    <a href="<?php echo get_post_type_archive_link( 'easy-photo-album' ); ?>">Go Back</a>

    You can change the text “Go Back” if you want

    Thread Starter jpdr

    (@jpdr)

    It’s working like a charm! Thank you very much! May I ask how the photoalbum automatic detect the single-easy-photo-album.php file?

    Kindly regard,
    John-Paul

    Plugin Author TV productions

    (@tv-productions)

    The plugin doesn’t detect the file, the theme does. So when you update your theme, this file might be deleted or altered.

    For more info: https://codex.www.ads-software.com/Template_Hierarchy

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem back button’ is closed to new replies.