1 link rather than 2 (thumbnail text
-
Dear master,
As you know, you use two links (a href) when thumbnails + texts are used.
However, we know from google that every link on a page leaks google juice.
https://www.mattcutts.com/blog/pagerank-sculpting/it would be nice to have only one link for both thumbnail and text.
I have myself fixed this issue by modifying your code. My setup is
“Display thumbnails inline with posts, before title”In your main php file at the end of:
$output .= crp_get_the_post_thumbnail( array( 'postid' => $result->ID, 'thumb_height' => $thumb_height, 'thumb_width' => $thumb_width, 'thumb_meta' => $thumb_meta, 'thumb_html' => $thumb_html, 'thumb_default' => $thumb_default, 'thumb_default_show' => $thumb_default_show, 'scan_images' => $scan_images, 'class' => 'crp_thumb', ) ); $output .= '</a>';
i removed the /a tag to look like:
$output .= ”;
then, i have modified the code of title injection to look like this one adding the /a tag at the end
$output .= '<div class="crp_title">' . $title . '</div>'; // Add title when required by settings
Then i went to your css and i have disabled heigh inherit
.crp_related .crp_title { position: absolute; /* height: inherit; */
thank you;
https://www.ads-software.com/plugins/contextual-related-posts/
- The topic ‘1 link rather than 2 (thumbnail text’ is closed to new replies.