• Resolved evilbeet

    (@evilbeet)


    I’m using the default Kubrick theme. When I insert a photo gallery in a post, users can click on the thumbnails and be taken to an image page, where they can view the image and also click on thumbnails of the image before and after. In that way, they can click through the entire gallery.

    However, when I insert a gallery in a page, it doesn’t work that way. Clicking on an image only takes a user to that full-size image, without before and after thumbnails.

    Does anyone know what I have to tweak in the code to fix this?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter evilbeet

    (@evilbeet)

    I just spent some more time looking at this, and what’s strange is that the code for the previous/next images is showing up in the source code for the page-based galleries, it’s just not showing up on the actual page. Here’s an example:

    http://evilbeetgossip.film.com/nicole/90526x7_richie_b-gr_02/

    If you look at the source code for this, it looks as though it’s showing the thumbnails for previous/next images, but they never show up on the page.

    In contrast, this image — originally embedded in a post rather than a page — shows those images properly:

    http://evilbeetgossip.film.com/2009/05/26/tori-spelling-terrified-of-beautiful-daughter/torispellingscaredme1-1/

    I’m not seeing any difference in the way the source code handles those thumbnails. Why do they show up on one but not the other?

    Thread Starter evilbeet

    (@evilbeet)

    I had a WP guru look at this last night and he fixed it. For anyone else who stumbles on this thread later, this was the solution:

    For some reason, there’s a line of code in the <head> section of Pages
    like this:

    <style type=”text/css”>.navigation{display: none;}</style>

    It’s probably part of some theme coding or a plugin.

    The ‘display: none;’ part makes the navigation block invisible. The
    code doesn’t appear on Post pages, which is why you could see the nav
    of those posts / pages.

    I could probably dig around and find some way of stopping that code
    from appearing at all – but that might take a while to do. And we like
    quick & easy fixes more, don’t we?

    So I added ‘display: block;’ to the
    <div class=”navigation”… part of your image.php template. That
    overrides the other code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting Galleries Within a Page to Link to Image.php’ is closed to new replies.