Customizing the WP Gallery (2 posts)

  1. kicksonfire
    Posted 7 years ago #

    Currently on my site, I rely a lot on the gallery function to display my images... But one thing has been bothering me. The navigation from one image to the next is horrible... My readers have to go forward and backward to look at all the pictures. What are my options here? I want to have a NEXT and PREVIOUS link some where around my image within a gallery which will take the reader to the next image... How can I achieve this?


  2. churchthemer
    Posted 7 years ago #

    You have a couple of options:

    1. You can create an image.php template file for your theme (copy single.php) and replace:

    <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>


    <div class="alignleft"><?php previous_image_link() ?></div>
    <div class="alignright"><?php next_image_link() ?></div>

    2. You can use a full blown gallery plugin like the NextGen gallery plugin

    3. You can use a plugin that simply adds lightbox functionality to your existing wordpress galleries. The lighbox image views comes with next and previous links: Heres as few plugins/articles to get you started:

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.