Support Forums for LiveMesh Themes & Plugins › Forums › Austin Theme Support › When clicked on icon make it to go to the page instead of popup image
- This topic has 2 replies, 2 voices, and was last updated 9 years, 8 months ago by washingtondc.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
August 15, 2014 at 9:56 pm #8533washingtondcMember
Hello, Not a PHP guy here but wondering if you will be able to help me out here >>
thumbnail-functions.php
//create the thumbnail if (!empty($thumbnail_urls)) { $thumbnail_src = $thumbnail_urls[0]; $thumbnail_element = $thumbnail_urls[1]; if (empty($post_id)) $post_id = get_the_ID(); $post_title = get_the_title($post_id); $post_link = get_permalink($post_id); $post_type = get_post_type($post_id); $rel_attribute = 'rel="prettyPhoto[' . $context . ']" '; if ($post_type === 'gallery_item') { // Make the anchor to gallery thumbnail point to the image directly $before_html = '<a title="' . $post_title . '" href="' . $thumbnail_src . ' ">'; $after_html = '</a>' . $after_html; if ($wrapper) { $wrapper_html = '<div class="image-area">'; $before_html = $wrapper_html . $before_html; if (mo_show_image_info($context) || $show_image_info) { $image_info = '<div class="image-info">'; $image_info .= '<h3 class="post-title">' . $post_title . '</h3>'; // do not link to post for gallery $image_info .= mo_get_taxonomy_info($taxonomy); $image_info .= '<span class="image-info-buttons">'; // Make this part of the link itself $image_info .= '<a class="lightbox-link" ' . $rel_attribute . 'title="' . $post_title . '" href="' . $thumbnail_src . ' "><i class="lightbox icon-expand2"></i></a>'; $image_info .= '</span>'; $image_info .= '</div>'; $after_html .= $image_info; } $after_html .= '</div>'; // end of image-area } } else { if (empty($before_html)) { $before_html = '<a title="' . $post_title . '" href="' . $post_link . ' ">'; $after_html = '</a>' . $after_html; } if ($wrapper) { $wrapper_html = '<div class="image-area">'; $before_html = $wrapper_html . $before_html; if (mo_show_image_info($context) || $show_image_info) { $image_info = '<div class="image-info">'; $image_info .= '<h3 class="post-title"><a title="' . $post_title . '" href="' . $post_link . ' ">' . $post_title . '</a></h3>'; $image_info .= mo_get_taxonomy_info($taxonomy); $image_info .= '<span class="image-info-buttons">'; // point me to the source of the image for lightbox preview $image_info .= '<a class="lightbox-link" ' . $rel_attribute . 'title="' . $post_title . '" href="' . $thumbnail_src . ' "><i class="lightbox icon-expand2"></i></a>'; $image_info .= '</span>'; $image_info .= '</div>'; $after_html .= $image_info ; } $after_html .= '</div>'; // end of image-area } } $output = $before_html; $output .= $thumbnail_element; $output .= $after_html; } return $output; } } if (!function_exists('mo_get_taxonomy_info')) { function mo_get_taxonomy_info($taxonomy) { $output = ''; $terms = get_the_terms(get_the_ID(), $taxonomy); if ($terms) { $output .= '<div class="terms">'; $term_count = 0; foreach ($terms as $term) { if ($term_count != 0) $output .= ', '; $output .= '<a href="' . get_term_link($term->slug, $taxonomy) . '">' . $term->name . '</a>'; $term_count = $term_count + 1; } $output .= '</div>'; } return $output; } } if (!function_exists('mo_get_thumbnail_urls')) { function mo_get_thumbnail_urls($args) {
Marked image >> http://tinypic.com/view.php?pic=2ztkilz&s=8#.U-6Be_ldV8F
I would like to change code so when user clicks on icon they to same URL as title.
Can you please help me with this!
Thank you so much!
Have a nice weekend:)August 16, 2014 at 1:13 pm #8545RaghavendraModeratorAugust 22, 2014 at 5:09 pm #8622washingtondcMemberAnd it works 🙂
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘When clicked on icon make it to go to the page instead of popup image’ is closed to new replies.