Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mister klucha

    (@mister-klucha)

    Ok I’ve got it.
    But i have another question :

    Here is my gallery on my blog page.

    I want that the thumnail on the blog page links to the media (actually it open the ligtbox)

    When we are on the gallery, i want that each media open the lightbox (actually medias link to the media page)
    Here fo the gallery.

    I must edit content-gallery.php or one another php file ?

    Thread Starter mister klucha

    (@mister-klucha)

    I just found how to link to media file directly (must go in visual mode then edit gallery, the option is on the right).

    I’m looking for the way to modify the link of thumbnail in blog ??

    Thread Starter mister klucha

    (@mister-klucha)

    in function.php
    i must edit pinboard_post_gallery()

    and customize the link a href but how to link the gallery page with the image ?

    Thread Starter mister klucha

    (@mister-klucha)

    I found
    replace link

    <a href="<?php $image = wp_get_attachment_image_src( $attachment->ID, 'full' ); echo $image[0]; ?>" class="colorbox" title="<?php echo esc_attr( get_the_title( $attachment->ID ) ); ?>" rel="attachment">
    						<?php echo wp_get_attachment_image( $attachment->ID, "gallery-{$count}-thumb" ); ?>
    					</a>

    with

    <a href="<?php the_permalink() ?>" rel="bookmark" title:"<?php the_title_attribute(); ?>"><?php echo wp_get_attachment_image( $attachment->ID, "gallery-{$count}-thumb" ); ?>
    					</a>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to set a gallery ?’ is closed to new replies.