Okay
  Public Ticket #672023
portfolio gallery
Closed

Comments

  • Cliff started the conversation

    thank yoiu for a visually stunning theme! My client would like to be able to click on the portfolio gallery slide show and go to the attachment page so that users can comment on individual images. Currently the galley images open using PrettyPhoto overlay, which is cool, but not quite what I was hoping for. Is there a way to make this open the image permalink? I found that removing the prettyphoto class will open the image url but not the attachment page.

    I think I'm n the right place, line 357 of single-portfolio.php,

    elseif(!empty($isgallery)){

    echo "<div class='post_att_s'><div class='flexslider'><ul class='slides'>";

    foreach ($galleryArray as $id) {

    $url = wp_get_attachment_url( $id, 'full', 0 );

    echo "<li>";

    echo '<a href="' .$url. '" class="prettyPhoto ">';

    echo wp_get_attachment_image( $id, 'blog_tn', 0 );

    echo "</a></li>";


    Any help is greatly appreciated!

  •  895
    TheFox replied

    Hello Cliff, thanks for purchasing Thefox!

    Yes you are modifying the right place, but I am not sure how you could do this.

    Maybe you should try the_attachment_link() or wp_get_attachment_link()

    Do not hesitate to contact us if you have more questions.

    Regards.